aboutsummaryrefslogtreecommitdiffstats
path: root/src/ui/GpgFrontendApplication.cpp
diff options
context:
space:
mode:
authorsaturneric <[email protected]>2024-01-16 13:35:59 +0000
committersaturneric <[email protected]>2024-01-16 13:35:59 +0000
commit620ae9e7c1a8b2db2515c080416cb592066e5fec (patch)
tree900f3e55118aa2a5049d99dd743d3e595016fc7b /src/ui/GpgFrontendApplication.cpp
parentfix: make task and threading system safer (diff)
downloadGpgFrontend-620ae9e7c1a8b2db2515c080416cb592066e5fec.tar.gz
GpgFrontend-620ae9e7c1a8b2db2515c080416cb592066e5fec.zip
refactor: remove libgettext from project
Diffstat (limited to 'src/ui/GpgFrontendApplication.cpp')
-rw-r--r--src/ui/GpgFrontendApplication.cpp25
1 files changed, 13 insertions, 12 deletions
diff --git a/src/ui/GpgFrontendApplication.cpp b/src/ui/GpgFrontendApplication.cpp
index f7fc5635..1304aad5 100644
--- a/src/ui/GpgFrontendApplication.cpp
+++ b/src/ui/GpgFrontendApplication.cpp
@@ -37,7 +37,7 @@ namespace GpgFrontend::UI {
GpgFrontendApplication::GpgFrontendApplication(int &argc, char *argv[])
: QApplication(argc, argv) {
#ifndef MACOS
- this->setWindowIcon(QIcon(":gpgfrontend.png"));
+ this->setWindowIcon(QIcon(":/icons/gpgfrontend.png"));
#endif
// set the extra information of the build
@@ -60,20 +60,21 @@ bool GpgFrontendApplication::notify(QObject *receiver, QEvent *event) {
return QApplication::notify(receiver, event);
} catch (const std::exception &ex) {
GF_UI_LOG_ERROR("exception was caught in notify: {}", ex.what());
- QMessageBox::information(nullptr, _("Standard Exception Thrown"),
- _("Oops, an standard exception was thrown "
- "during the running of the "
- "program. This is not a serious problem, it may "
- "be the negligence of the programmer, "
- "please report this problem if you can."));
+ QMessageBox::information(
+ nullptr, tr("Standard Exception Thrown"),
+ tr("Oops, an standard exception was thrown "
+ "during the running of the "
+ "program. This is not a serious problem, it may "
+ "be the negligence of the programmer, "
+ "please report this problem if you can."));
} catch (...) {
GF_UI_LOG_ERROR("unknown exception was caught in notify");
QMessageBox::information(
- nullptr, _("Unhandled Exception Thrown"),
- _("Oops, an unhandled exception was thrown "
- "during the running of the program. This is not a "
- "serious problem, it may be the negligence of the programmer, "
- "please report this problem if you can."));
+ nullptr, tr("Unhandled Exception Thrown"),
+ tr("Oops, an unhandled exception was thrown "
+ "during the running of the program. This is not a "
+ "serious problem, it may be the negligence of the programmer, "
+ "please report this problem if you can."));
}
return -1;
#else