aboutsummaryrefslogtreecommitdiffstats
path: root/src/ui/GpgFrontendApplication.cpp
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--src/ui/GpgFrontendApplication.cpp11
1 files changed, 4 insertions, 7 deletions
diff --git a/src/ui/GpgFrontendApplication.cpp b/src/ui/GpgFrontendApplication.cpp
index b1c5beed..1b2bb9ad 100644
--- a/src/ui/GpgFrontendApplication.cpp
+++ b/src/ui/GpgFrontendApplication.cpp
@@ -26,6 +26,8 @@
#include "ui/GpgFrontendApplication.h"
+#include <QTextCodec>
+
#include "GpgFrontendBuildInfo.h"
namespace GpgFrontend::UI {
@@ -36,11 +38,6 @@ GpgFrontendApplication::GpgFrontendApplication(int &argc, char *argv[])
this->setWindowIcon(QIcon(":gpgfrontend.png"));
#endif
-#ifdef MACOS
- // support retina screen
- this->setAttribute(Qt::AA_UseHighDpiPixmaps);
-#endif
-
// set the extra information of the build
this->setApplicationVersion(BUILD_VERSION);
this->setApplicationName(PROJECT_NAME);
@@ -75,7 +72,7 @@ bool GpgFrontendApplication::notify(QObject *receiver, QEvent *event) {
try {
app_done = QApplication::notify(receiver, event);
} catch (const std::exception &ex) {
- LOG(INFO) << "Exception caught in notify: " << ex.what();
+ SPDLOG_ERROR("exception caught in notify: {}", ex.what());
QMessageBox::information(nullptr, _("Standard Exception Thrown"),
_("Oops, an standard exception was thrown "
"during the running of the "
@@ -83,7 +80,7 @@ bool GpgFrontendApplication::notify(QObject *receiver, QEvent *event) {
"be the negligence of the programmer, "
"please report this problem if you can."));
} catch (...) {
- LOG(INFO) << "Unknown exception caught in notify";
+ SPDLOG_ERROR("unknown exception caught in notify");
QMessageBox::information(
nullptr, _("Unhandled Exception Thrown"),
_("Oops, an unhandled exception was thrown "