From 67546993904589dca8baf8d31acff6b2347032fd Mon Sep 17 00:00:00 2001 From: Aaron Seigo Date: Fri, 19 Sep 2014 13:42:54 +0200 Subject: use the same open flags as the group handed in this way we actually get the same shared pointer and thus does not require a sync() call on the config object to get the right values REVIEW:120283 --- src/gui/kconfigloader.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/gui/kconfigloader.cpp') diff --git a/src/gui/kconfigloader.cpp b/src/gui/kconfigloader.cpp index 52ac6d17..acccf91c 100644 --- a/src/gui/kconfigloader.cpp +++ b/src/gui/kconfigloader.cpp @@ -376,7 +376,7 @@ KConfigLoader::KConfigLoader(KSharedConfigPtr config, QIODevice *xml, QObject *p // but KConfigSkeleton does not currently support this. it will eventually though, // at which point this can be addressed properly KConfigLoader::KConfigLoader(const KConfigGroup &config, QIODevice *xml, QObject *parent) - : KConfigSkeleton(KSharedConfig::openConfig(config.config()->name()), parent), + : KConfigSkeleton(KSharedConfig::openConfig(config.config()->name(), config.config()->openFlags()), parent), d(new ConfigLoaderPrivate) { KConfigGroup group = config.parent(); -- cgit v1.2.1