Commit d2d30a96 authored by Kai Uwe Broulik's avatar Kai Uwe Broulik 🍇
Browse files

[KRunner KCM] Mark KCM as dirty when plugin configuration changes

Connect configCommitted to ensure "Apply" gets enabled when you change any of the runner plugin settings.
Also, clean up the other connect.

Differential Revision: https://phabricator.kde.org/D26445
parent f5d1675a
...@@ -73,9 +73,11 @@ SearchConfigModule::SearchConfigModule(QWidget* parent, const QVariantList& args ...@@ -73,9 +73,11 @@ SearchConfigModule::SearchConfigModule(QWidget* parent, const QVariantList& args
m_pluginSelector = new KPluginSelector(this); m_pluginSelector = new KPluginSelector(this);
//overload, can't use the new syntax auto markAsChanged = [this] {
connect(m_pluginSelector, SIGNAL(changed(bool)), emit changed();
this, SIGNAL(changed(bool))); };
connect(m_pluginSelector, &KPluginSelector::changed, this, markAsChanged);
connect(m_pluginSelector, &KPluginSelector::configCommitted, this, markAsChanged);
layout->addLayout(headerLayout); layout->addLayout(headerLayout);
layout->addWidget(m_pluginSelector); layout->addWidget(m_pluginSelector);
......
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