aboutsummaryrefslogtreecommitdiff
path: root/src/core/kconfig.cpp
diff options
context:
space:
mode:
authorDavid Faure <faure@kde.org>2014-03-04 22:15:59 +0100
committerDavid Faure <faure@kde.org>2014-03-13 23:42:22 +0100
commit66f0e0272cb86b08699b79c1f3bc15d221366f0e (patch)
treeba2b880cd174db558347c35a8d72c49a2b0b3309 /src/core/kconfig.cpp
parent245e758cb94c0abd7e8a87c5349c49a5de1c146f (diff)
downloadkconfig-66f0e0272cb86b08699b79c1f3bc15d221366f0e.tar.gz
kconfig-66f0e0272cb86b08699b79c1f3bc15d221366f0e.tar.bz2
KCoreConfigSkeleton: delay parsing until the call to readConfig()
Diffstat (limited to 'src/core/kconfig.cpp')
-rw-r--r--src/core/kconfig.cpp6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/core/kconfig.cpp b/src/core/kconfig.cpp
index 5b51cce8..4695621a 100644
--- a/src/core/kconfig.cpp
+++ b/src/core/kconfig.cpp
@@ -259,8 +259,10 @@ KConfig::KConfig(const QString &file, OpenFlags mode,
{
d_ptr->changeFileName(file); // set the local file name
- // read initial information off disk
- reparseConfiguration();
+ if ((mode & DelayedParsing) == 0) {
+ // read initial information off disk
+ reparseConfiguration();
+ }
}
KConfig::KConfig(const QString &file, const QString &backend, QStandardPaths::StandardLocation resourceType)