Revert 236d4c8 for EffectsHanlder::effectConfig

EffectConfig is used also in the config modules which
means kwinrc needs to be explicitly specified.

BUG: 299163
REVIEW: 104808
This commit is contained in:
Martin Gräßlin 2012-05-01 16:15:12 +02:00
parent 8e8212b0ef
commit eb5aa92746

View file

@ -271,7 +271,8 @@ void EffectsHandler::sendReloadMessage(const QString& effectname)
KConfigGroup EffectsHandler::effectConfig(const QString& effectname)
{
return KGlobal::config()->group("Effect-" + effectname);
KSharedConfig::Ptr kwinconfig = KSharedConfig::openConfig("kwinrc", KConfig::NoGlobals);
return kwinconfig->group("Effect-" + effectname);
}
EffectsHandler* effects = 0;