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
wilder
Aaron Seigo 12 years ago
parent ba7449db03
commit 6754699390
  1. 2
      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();

Loading…
Cancel
Save