From a97d4e099991ffea9aa527558e1c88b1f4323b5c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?M=C3=A9ven=20Car?= Date: Fri, 13 Mar 2020 10:44:02 +0100 Subject: [PATCH] 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 --- kcmkwin/kwinscripts/module.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/kcmkwin/kwinscripts/module.cpp b/kcmkwin/kwinscripts/module.cpp index 5ebb716d9c..2aab48a65d 100644 --- a/kcmkwin/kwinscripts/module.cpp +++ b/kcmkwin/kwinscripts/module.cpp @@ -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(&KCModule::changed)); + connect(ui->scriptSelector, &KPluginSelector::defaulted, this, qOverload(&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()