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:
parent f5d1675a
......@@ -73,9 +73,11 @@ SearchConfigModule::SearchConfigModule(QWidget* parent, const QVariantList& args
m_pluginSelector = new KPluginSelector(this);
//overload, can't use the new syntax
connect(m_pluginSelector, SIGNAL(changed(bool)),
this, SIGNAL(changed(bool)));
auto markAsChanged = [this] {
emit changed();
connect(m_pluginSelector, &KPluginSelector::changed, this, markAsChanged);
connect(m_pluginSelector, &KPluginSelector::configCommitted, this, markAsChanged);
Supports Markdown
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