diff options
author | Saturneric <[email protected]> | 2022-02-06 13:11:22 +0000 |
---|---|---|
committer | Saturneric <[email protected]> | 2022-02-06 13:11:22 +0000 |
commit | f669154e2cd58238d0f03921dd23409fb9cb6213 (patch) | |
tree | ba827619af7071e29192740f5aa860447ee0b522 /src/main.cpp | |
parent | <refactor>(src): Move and split the Global Settings Station (diff) | |
download | GpgFrontend-f669154e2cd58238d0f03921dd23409fb9cb6213.tar.gz GpgFrontend-f669154e2cd58238d0f03921dd23409fb9cb6213.zip |
<fix>(src): Do not catch any exceptions when debugging
Diffstat (limited to 'src/main.cpp')
-rw-r--r-- | src/main.cpp | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/main.cpp b/src/main.cpp index 9886fa0a..fdccddd1 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -208,7 +208,9 @@ int main(int argc, char* argv[]) { int r = setjmp(recover_env); #endif if (!r) { +#ifdef RELEASE try { +#endif // init the i18n support init_locale(); @@ -219,7 +221,7 @@ int main(int argc, char* argv[]) { main_window->init(); main_window->show(); return_from_event_loop_code = QApplication::exec(); - +#ifdef RELEASE } catch (...) { // catch all unhandled exceptions and notify the user QMessageBox::information( @@ -232,6 +234,7 @@ int main(int argc, char* argv[]) { return_from_event_loop_code = RESTART_CODE; continue; } +#endif } else { // when signal is caught, restart the main window |