aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorsaturneric <[email protected]>2023-11-30 07:26:08 +0000
committersaturneric <[email protected]>2023-11-30 07:26:08 +0000
commitbb6488d84c94e71f554e5212c1f24c322872f1bd (patch)
tree04c03c02b478367b8aa635838d5b19e1695e6d65 /src
parentfeat: introduce cmd functions (diff)
downloadGpgFrontend-bb6488d84c94e71f554e5212c1f24c322872f1bd.tar.gz
GpgFrontend-bb6488d84c94e71f554e5212c1f24c322872f1bd.zip
fix: update exit oprations odering
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;
}