Commit a97d4e09 authored by Méven Car's avatar Méven Car

kcmkwin/scripts: make default button work

Reviewers: ervin, #kwin, crossi, hchain, bport, zzag

Reviewed By: #kwin, zzag

Subscribers: zzag, kwin

Tags: #kwin

Differential Revision: https://phabricator.kde.org/D28019
parent 40ebb4e2
......@@ -65,8 +65,9 @@ Module::Module(QWidget *parent, const QVariantList &args) :
}
});
connect(ui->scriptSelector, SIGNAL(changed(bool)), this, SLOT(changed()));
connect(ui->importScriptButton, SIGNAL(clicked()), SLOT(importScript()));
connect(ui->scriptSelector, &KPluginSelector::changed, this, qOverload<bool>(&KCModule::changed));
connect(ui->scriptSelector, &KPluginSelector::defaulted, this, qOverload<bool>(&KCModule::defaulted));
connect(ui->importScriptButton, &QPushButton::clicked, this, &Module::importScript);
updateListViewContents();
}
......@@ -140,7 +141,6 @@ void Module::updateListViewContents()
void Module::defaults()
{
ui->scriptSelector->defaults();
emit changed(true);
}
void Module::load()
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment