aboutsummaryrefslogtreecommitdiff
path: root/src/core/kconfigini.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/core/kconfigini.cpp')
-rw-r--r--src/core/kconfigini.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/core/kconfigini.cpp b/src/core/kconfigini.cpp
index 2792cb4f..5bc8743c 100644
--- a/src/core/kconfigini.cpp
+++ b/src/core/kconfigini.cpp
@@ -592,10 +592,11 @@ void KConfigIniBackend::setFilePath(const QString &file)
setLocalFilePath(info.canonicalFilePath());
} else {
const QString dir = info.dir().canonicalPath();
- if (!dir.isEmpty())
+ if (!dir.isEmpty()) {
setLocalFilePath(dir + QLatin1Char('/') + info.fileName());
- else
+ } else {
setLocalFilePath(file);
+ }
}
}