From 220c3caf140ff557796ee75947607e1726a1a60b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Martin=20Gr=C3=A4=C3=9Flin?= Date: Thu, 15 May 2014 17:10:40 +0200 Subject: [PATCH] [kcmkwin/compositing] Fix storing of PluginEnabled states BUG: 334812 --- kcmkwin/kwincompositing/model.cpp | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/kcmkwin/kwincompositing/model.cpp b/kcmkwin/kwincompositing/model.cpp index f6126dc09d..889c22f193 100644 --- a/kcmkwin/kwincompositing/model.cpp +++ b/kcmkwin/kwincompositing/model.cpp @@ -381,10 +381,9 @@ void EffectModel::syncConfig() for (auto it = m_effectsList.constBegin(); it != m_effectsList.constEnd(); it++) { const EffectData &effect = *(it); - QString key = effect.serviceName + QStringLiteral("Enabled"); - const bool effectConfigStatus = kwinConfig.readEntry(key, effect.enabledByDefault); + const QString key = effect.serviceName + QStringLiteral("Enabled"); - if (effect.effectStatus != effectConfigStatus) { + if (effect.effectStatus != effect.enabledByDefault) { kwinConfig.writeEntry(key, effect.effectStatus); } else { kwinConfig.deleteEntry(key);