From 66f0e0272cb86b08699b79c1f3bc15d221366f0e Mon Sep 17 00:00:00 2001 From: David Faure Date: Tue, 4 Mar 2014 22:15:59 +0100 Subject: KCoreConfigSkeleton: delay parsing until the call to readConfig() --- src/core/kconfig.cpp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'src/core/kconfig.cpp') 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) -- cgit v1.2.1