Commit ebf6e691 authored by Vlad Zahorodnii's avatar Vlad Zahorodnii

[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
parent 0a656815
......@@ -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);
......
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