aboutsummaryrefslogtreecommitdiffstats
path: root/src/ui/GpgFrontendApplication.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/ui/GpgFrontendApplication.cpp')
-rw-r--r--src/ui/GpgFrontendApplication.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/ui/GpgFrontendApplication.cpp b/src/ui/GpgFrontendApplication.cpp
index 83866c0d..7b079de1 100644
--- a/src/ui/GpgFrontendApplication.cpp
+++ b/src/ui/GpgFrontendApplication.cpp
@@ -73,6 +73,7 @@ GpgFrontendApplication *GpgFrontendApplication::GetInstance(int argc,
}
bool GpgFrontendApplication::notify(QObject *receiver, QEvent *event) {
+#ifdef RELEASE
try {
return QApplication::notify(receiver, event);
} catch (const std::exception &ex) {
@@ -97,6 +98,9 @@ bool GpgFrontendApplication::notify(QObject *receiver, QEvent *event) {
"please report this problem if you can."));
}
return -1;
+#else
+ return QApplication::notify(receiver, event);
+#endif
}
} // namespace GpgFrontend::UI