diff --git a/kcmkwin/kwincompositing/effectconfig.cpp b/kcmkwin/kwincompositing/effectconfig.cpp index d9f2858e13..cb1e9062d4 100644 --- a/kcmkwin/kwincompositing/effectconfig.cpp +++ b/kcmkwin/kwincompositing/effectconfig.cpp @@ -53,7 +53,6 @@ void EffectConfig::openConfig(const QString &effectName) { //setup the UI QDialog dialog; QVBoxLayout layout; - KCModuleProxy *proxy; QDialogButtonBox *buttons = new QDialogButtonBox(QDialogButtonBox::Ok | QDialogButtonBox::Cancel); buttons->setCenterButtons(true); @@ -67,7 +66,7 @@ void EffectConfig::openConfig(const QString &effectName) { KPluginInfo plugin(service); if (plugin.name() == effectName) { QString effectConfig = serviceName(plugin.name() + "_config"); - proxy = new KCModuleProxy(effectConfig); + KCModuleProxy *proxy = new KCModuleProxy(effectConfig); //setup the Layout of our UI layout.addWidget(proxy);