diff options
Diffstat (limited to 'src/kreadconfig/kwriteconfig.cpp')
-rw-r--r-- | src/kreadconfig/kwriteconfig.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/kreadconfig/kwriteconfig.cpp b/src/kreadconfig/kwriteconfig.cpp index 02a23120..23a4ffa4 100644 --- a/src/kreadconfig/kwriteconfig.cpp +++ b/src/kreadconfig/kwriteconfig.cpp @@ -7,6 +7,7 @@ * */ #include <kconfig.h> +#include <kconfiggroup.h> #include <kglobal.h> #include <kapplication.h> #include <kcmdlineargs.h> @@ -51,9 +52,9 @@ int main(int argc, char **argv) KConfig *konfig; if (file.isEmpty()) - konfig = new KConfig(QString::fromLatin1( "kdeglobals"), KConfig::NoGlobals ); + konfig = new KConfig(QString::fromLatin1( "kdeglobals"), KConfig::CascadeConfig ); else - konfig = new KConfig( file, KConfig::NoGlobals ); + konfig = new KConfig( file, KConfig::CascadeConfig ); KConfigGroup cfgGroup = konfig->group(group); if ( konfig->getConfigState() != KConfig::ReadWrite || cfgGroup.entryIsImmutable( key ) ) return 2; |