aboutsummaryrefslogtreecommitdiffstats
path: root/src/main.cpp
diff options
context:
space:
mode:
authorSaturneric <[email protected]>2022-05-19 19:02:22 +0000
committerSaturneric <[email protected]>2022-05-19 19:02:22 +0000
commit6d2f0fec12c142cd378c5515091e1aa5b58597fd (patch)
treee4dcd5a3e93e6a28a058516e43f0986195bc2083 /src/main.cpp
parentpref: improve pch for compiling speed (diff)
downloadGpgFrontend-6d2f0fec12c142cd378c5515091e1aa5b58597fd.tar.gz
GpgFrontend-6d2f0fec12c142cd378c5515091e1aa5b58597fd.zip
fix: adjust initialized order and organize
1. disable command line file arg input ability
Diffstat (limited to 'src/main.cpp')
-rw-r--r--src/main.cpp12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/main.cpp b/src/main.cpp
index 6ef5a7bc..4383bb21 100644
--- a/src/main.cpp
+++ b/src/main.cpp
@@ -97,18 +97,18 @@ int main(int argc, char* argv[]) {
// clean something before exit
atexit(before_exit);
- // init the logging system
- init_logging_system();
-
- // init the logging system for core
- GpgFrontend::InitLoggingSystem();
-
// initialize qt resources
Q_INIT_RESOURCE(gpgfrontend);
// create qt application
auto* app = init_qapplication(argc, argv);
+ // init the logging system
+ init_logging_system();
+
+ // init the logging system for core
+ GpgFrontend::InitLoggingSystem();
+
/**
* internationalisation. loop to restart main window
* with changed translation when settings change.