aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAaron Seigo <aseigo@kde.org>2014-09-19 13:42:54 +0200
committerAaron Seigo <aseigo@kde.org>2014-09-19 16:21:19 +0200
commit67546993904589dca8baf8d31acff6b2347032fd (patch)
treee7f8ab9e4b3327f48152b3ae46d3f4ff02094375
parentba7449db03273af8ac0f17c0ca553d253a31e065 (diff)
downloadkconfig-67546993904589dca8baf8d31acff6b2347032fd.tar.gz
kconfig-67546993904589dca8baf8d31acff6b2347032fd.tar.bz2
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
-rw-r--r--src/gui/kconfigloader.cpp2
1 files changed, 1 insertions, 1 deletions
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();