We should have only 1 proxy, not 2

This commit is contained in:
Antonis Tsiapaliokas 2013-08-07 10:14:29 +03:00 committed by Martin Gräßlin
parent 8081e2eb53
commit abaf03c1d0

View file

@ -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);