aboutsummaryrefslogtreecommitdiff
path: root/launcher/Application.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'launcher/Application.cpp')
-rw-r--r--launcher/Application.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/launcher/Application.cpp b/launcher/Application.cpp
index c97fdb0a..5694b82e 100644
--- a/launcher/Application.cpp
+++ b/launcher/Application.cpp
@@ -425,16 +425,16 @@ Application::Application(int &argc, char **argv) : QApplication(argc, argv)
foundLoggingRules = QFile::exists(logRulesPath);
// search the dataPath()
-
+ // seach app data standard path
if(!foundLoggingRules && !isPortable() && dirParam.isEmpty()) {
- logRulesPath = QStandardPaths::locate(QStandardPaths::AppDataLocation, logRulesFile);
+ logRulesPath = QStandardPaths::locate(QStandardPaths::AppDataLocation, FS::PathCombine("..", logRulesFile));
if(!logRulesPath.isEmpty()) {
qDebug() << "Found" << logRulesPath << "...";
foundLoggingRules = true;
}
}
-
- if(!QFile::exists(logRulesPath)) {
+ // seach root path
+ if(!foundLoggingRules) {
logRulesPath = FS::PathCombine(m_rootPath, logRulesFile);
qDebug() << "Testing" << logRulesPath << "...";
foundLoggingRules = QFile::exists(logRulesPath);