diff options
| author | Aaron Seigo <aseigo@kde.org> | 2014-09-19 13:42:54 +0200 | 
|---|---|---|
| committer | Aaron Seigo <aseigo@kde.org> | 2014-09-19 16:21:19 +0200 | 
| commit | 67546993904589dca8baf8d31acff6b2347032fd (patch) | |
| tree | e7f8ab9e4b3327f48152b3ae46d3f4ff02094375 | |
| parent | ba7449db03273af8ac0f17c0ca553d253a31e065 (diff) | |
| download | kconfig-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.cpp | 2 | 
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(); | 
