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
This commit is contained in:
Kevin Ottens 2008-02-01 17:50:18 +00:00
parent 022e417322
commit dde6b49658

View file

@ -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();