diff options
author | saturneric <[email protected]> | 2023-10-19 10:51:20 +0000 |
---|---|---|
committer | saturneric <[email protected]> | 2023-10-19 10:51:20 +0000 |
commit | 025c268f91ee1deab17891f00dc8c90c4770224f (patch) | |
tree | 3454263c7e5d4545bc5bac624eba17ca71257654 /src/ui/GpgFrontendApplication.cpp | |
parent | feat: using pool for concurrent executions, not stable yet (diff) | |
download | GpgFrontend-025c268f91ee1deab17891f00dc8c90c4770224f.tar.gz GpgFrontend-025c268f91ee1deab17891f00dc8c90c4770224f.zip |
fix: improve the stability of thread system
Diffstat (limited to 'src/ui/GpgFrontendApplication.cpp')
-rw-r--r-- | src/ui/GpgFrontendApplication.cpp | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/src/ui/GpgFrontendApplication.cpp b/src/ui/GpgFrontendApplication.cpp index 21932f44..83866c0d 100644 --- a/src/ui/GpgFrontendApplication.cpp +++ b/src/ui/GpgFrontendApplication.cpp @@ -73,9 +73,8 @@ GpgFrontendApplication *GpgFrontendApplication::GetInstance(int argc, } bool GpgFrontendApplication::notify(QObject *receiver, QEvent *event) { - bool app_done = true; try { - app_done = QApplication::notify(receiver, event); + return QApplication::notify(receiver, event); } catch (const std::exception &ex) { SPDLOG_ERROR("exception was caught in notify: {}", ex.what()); SPDLOG_ERROR("stacktrace of the exception: {}", @@ -97,7 +96,7 @@ bool GpgFrontendApplication::notify(QObject *receiver, QEvent *event) { "serious problem, it may be the negligence of the programmer, " "please report this problem if you can.")); } - return app_done; + return -1; } } // namespace GpgFrontend::UI |