aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/app.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/app.cpp b/src/app.cpp
index 71e3fd7b..4dcf6c13 100644
--- a/src/app.cpp
+++ b/src/app.cpp
@@ -124,6 +124,9 @@ auto StartApplication(InitArgs args) -> int {
} while (return_from_event_loop_code == GpgFrontend::kRestartCode &&
restart_count < 3);
+ // close logging system
+ ShutdownModules();
+
// log for debug
SPDLOG_INFO("GpgFrontend is about to exit.");
@@ -136,9 +139,6 @@ auto StartApplication(InitArgs args) -> int {
QProcess::startDetached(qApp->arguments()[0], qApp->arguments());
};
- // close logging system
- ShutdownModules();
-
// exit the program
return return_from_event_loop_code;
}