From de7b09b01166295f414b6c477074c44da35ff74e Mon Sep 17 00:00:00 2001 From: Antonis Tsiapaliokas Date: Fri, 13 Sep 2013 14:58:42 +0300 Subject: [PATCH] Enable effects by the service file should always be enabled, if there is not a relevant entry in the kwinrc --- kcmkwin/kwincompositing/model.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/kcmkwin/kwincompositing/model.cpp b/kcmkwin/kwincompositing/model.cpp index f35a4508c2..9ffe2d28f5 100644 --- a/kcmkwin/kwincompositing/model.cpp +++ b/kcmkwin/kwincompositing/model.cpp @@ -174,7 +174,7 @@ void EffectModel::loadEffects() effect.version = plugin.version(); effect.category = plugin.category(); effect.serviceName = plugin.pluginName(); - effect.effectStatus = kwinConfig.readEntry(effect.serviceName + "Enabled", false); + effect.effectStatus = kwinConfig.hasKey(effect.serviceName + "Enabled")? kwinConfig.readEntry(effect.serviceName + "Enabled", false) : plugin.isPluginEnabledByDefault(); m_effectsList << effect; }