From 7c672e59c83746bed3eb21b2c9e8e2b0f5ec33ae Mon Sep 17 00:00:00 2001 From: Arjen Hiemstra Date: Thu, 18 Jun 2020 17:03:41 +0200 Subject: 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. --- 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 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(); -- cgit v1.2.1