[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:
parent
0a65681596
commit
ebf6e691d8
1 changed files with 1 additions and 3 deletions
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue