From dde6b49658d9368f8e1b1408c1d0f474ca6c3459 Mon Sep 17 00:00:00 2001 From: Kevin Ottens Date: Fri, 1 Feb 2008 17:50:18 +0000 Subject: [PATCH] Don't use the global config for the rules config. kdeglobals is not supposed to store such rules, and this way we don't empty kdeglobals when KWin quits. Lubos: Ossi confirmed me it was the right move in the way we use KConfig here, so I committed directly. In case of problem just tell me. CCMAIL: l.lunak@kde.org svn path=/trunk/KDE/kdebase/workspace/; revision=769617 --- rules.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/rules.cpp b/rules.cpp index f9bd0d37f7..0e8588dccf 100644 --- a/rules.cpp +++ b/rules.cpp @@ -918,7 +918,7 @@ void Workspace::loadWindowRules() delete rules.front(); rules.pop_front(); } - KConfig cfg( "kwinrulesrc" ); + KConfig cfg( "kwinrulesrc", KConfig::NoGlobals ); int count = cfg.group("General").readEntry( "count",0 ); for( int i = 1; i <= count; @@ -933,7 +933,7 @@ void Workspace::loadWindowRules() void Workspace::writeWindowRules() { rulesUpdatedTimer.stop(); - KConfig cfg( "kwinrulesrc" ); + KConfig cfg( "kwinrulesrc", KConfig::NoGlobals ); QStringList groups = cfg.groupList(); for( QStringList::ConstIterator it = groups.begin(); it != groups.end();