[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
This commit is contained in:
Vlad Zahorodnii 2020-03-30 19:35:47 +03:00
parent 0a65681596
commit ebf6e691d8

View file

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