aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorArjen Hiemstra <ahiemstra@heimr.nl>2020-06-18 17:03:41 +0200
committerNate Graham <nate@kde.org>2020-06-22 13:51:21 +0000
commit7c672e59c83746bed3eb21b2c9e8e2b0f5ec33ae (patch)
treef99700d548995f6fb7e596cc25373c91e0915c9c /src
parenta316687c2de2f8078195f72a9c8fcf61e29e04f7 (diff)
downloadkconfig-7c672e59c83746bed3eb21b2c9e8e2b0f5ec33ae.tar.gz
kconfig-7c672e59c83746bed3eb21b2c9e8e2b0f5ec33ae.tar.bz2
Also pass locationType to KConfigSkeleton when construction from group
locationType is used to determine where the config file should be saved. If it is not passed on to the KConfigSkeleton constructor, the default (GenericConfigLocation) will be used and any value the application had set will be ignored.
Diffstat (limited to 'src')
-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 198ef63f..bfc7e9e8 100644
--- a/src/gui/kconfigloader.cpp
+++ b/src/gui/kconfigloader.cpp
@@ -366,7 +366,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(), config.config()->openFlags()), parent),
+ : KConfigSkeleton(KSharedConfig::openConfig(config.config()->name(), config.config()->openFlags(), config.config()->locationType()), parent),
d(new ConfigLoaderPrivate)
{
KConfigGroup group = config.parent();