aboutsummaryrefslogtreecommitdiffstats
path: root/src/core
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/core
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 '')
-rw-r--r--src/core/function/GlobalSettingStation.h2
-rw-r--r--src/core/thread/CtxCheckTask.cpp3
2 files changed, 1 insertions, 4 deletions
diff --git a/src/core/function/GlobalSettingStation.h b/src/core/function/GlobalSettingStation.h
index ee0b6b12..ccf8e8f0 100644
--- a/src/core/function/GlobalSettingStation.h
+++ b/src/core/function/GlobalSettingStation.h
@@ -143,7 +143,7 @@ class GPGFRONTEND_CORE_EXPORT GlobalSettingStation
private:
std::filesystem::path app_path_ =
- qApp->applicationDirPath().toStdString(); ///< Program Location
+ QCoreApplication::applicationDirPath().toStdString(); ///< Program Location
std::filesystem::path app_data_path_ =
QStandardPaths::writableLocation(QStandardPaths::AppLocalDataLocation)
.toStdString(); ///< Program Data Location
diff --git a/src/core/thread/CtxCheckTask.cpp b/src/core/thread/CtxCheckTask.cpp
index ee170fbc..997dd341 100644
--- a/src/core/thread/CtxCheckTask.cpp
+++ b/src/core/thread/CtxCheckTask.cpp
@@ -38,9 +38,6 @@ GpgFrontend::Thread::CtxCheckTask::CtxCheckTask() {
}
void GpgFrontend::Thread::CtxCheckTask::Run() {
- // init logging
- init_logging();
-
// Init GpgFrontend Core
init_gpgfrontend_core();