From ebf6e691d88f9463eb5df7d347f8e9a247119c76 Mon Sep 17 00:00:00 2001 From: Vlad Zahorodnii Date: Mon, 30 Mar 2020 19:35:47 +0300 Subject: [PATCH] [kcmkwin] Remove redundant lambda Summary: We don't need a lambda because QDialog::accepted can be connected directly to KCModule::save. Test Plan: Compiles. Reviewers: #kwin, davidedmundson Reviewed By: #kwin, davidedmundson Subscribers: kwin Tags: #kwin Differential Revision: https://phabricator.kde.org/D28443 --- kcmkwin/common/effectsmodel.cpp | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/kcmkwin/common/effectsmodel.cpp b/kcmkwin/common/effectsmodel.cpp index 8543f692fa..60e733b5ed 100644 --- a/kcmkwin/common/effectsmodel.cpp +++ b/kcmkwin/common/effectsmodel.cpp @@ -666,9 +666,7 @@ void EffectsModel::requestConfigure(const QModelIndex &index, QWindow *transient layout->addWidget(module); layout->addWidget(buttons); - connect(dialog, &QDialog::accepted, module, [module]() { - module->save(); - }); + connect(dialog, &QDialog::accepted, module, &KCModule::save); dialog->setModal(true); dialog->setAttribute(Qt::WA_DeleteOnClose);