use a rules file dependednt from the kwin name

kwinacriverulesrc vs kwinrulesrc
icc-effect-5.14.5
Marco Martin 2012-11-03 22:07:13 +01:00
parent 93e9854674
commit 36ed622a61
1 changed files with 2 additions and 2 deletions

View File

@ -965,7 +965,7 @@ void Workspace::loadWindowRules()
delete rules.front();
rules.pop_front();
}
KConfig cfg("kwinrulesrc", KConfig::NoGlobals);
KConfig cfg(QLatin1String(KWIN_NAME) + "rulesrc", KConfig::NoGlobals);
int count = cfg.group("General").readEntry("count", 0);
for (int i = 1;
i <= count;
@ -979,7 +979,7 @@ void Workspace::loadWindowRules()
void Workspace::writeWindowRules()
{
rulesUpdatedTimer.stop();
KConfig cfg("kwinrulesrc", KConfig::NoGlobals);
KConfig cfg(QLatin1String(KWIN_NAME) + "rulesrc", KConfig::NoGlobals);
QStringList groups = cfg.groupList();
for (QStringList::ConstIterator it = groups.constBegin();
it != groups.constEnd();