From dd8a0407cafc32571e4b8f165c78e0a6462914e3 Mon Sep 17 00:00:00 2001 From: Vlad Zagorodniy Date: Wed, 10 Apr 2019 11:40:46 +0300 Subject: [PATCH] [kcmkwin] Actually save effect settings As part of an effort to unify effect KCM logic, code that actually saves effect settings unfortunately got lost. Sorry for that. --- kcmkwin/common/effectsmodel.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/kcmkwin/common/effectsmodel.cpp b/kcmkwin/common/effectsmodel.cpp index 49d8e6ecbb..26d07c687e 100644 --- a/kcmkwin/common/effectsmodel.cpp +++ b/kcmkwin/common/effectsmodel.cpp @@ -652,7 +652,9 @@ void EffectsModel::requestConfigure(const QModelIndex &index, QWindow *transient layout->addWidget(module); layout->addWidget(buttons); - dialog->exec(); + if (dialog->exec() == QDialog::Accepted) { + module->save(); + } delete dialog; }