From 3f093c395b1da2316037e514f424d305fc4cf779 Mon Sep 17 00:00:00 2001 From: Kai Uwe Broulik Date: Fri, 1 Sep 2017 12:07:41 +0200 Subject: [PATCH] [CurrentContainmentActionsModel] Emit configurationChanged when action is added/removed/edited Removes the need for the UI to explicitly do this on every action. Differential Revision: https://phabricator.kde.org/D7626 --- shell/currentcontainmentactionsmodel.cpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/shell/currentcontainmentactionsmodel.cpp b/shell/currentcontainmentactionsmodel.cpp index 9636ac5b2..ac56a3861 100644 --- a/shell/currentcontainmentactionsmodel.cpp +++ b/shell/currentcontainmentactionsmodel.cpp @@ -132,6 +132,8 @@ bool CurrentContainmentActionsModel::append(const QString &action, const QString m_removedTriggers.removeAll(action); appendRow(item); + + emit configurationChanged(); return true; } @@ -166,6 +168,8 @@ void CurrentContainmentActionsModel::update(int row, const QString &action, cons m_plugins[action]->restore(tempConfig); setData(idx, m_plugins[action]->pluginInfo().property(QStringLiteral("X-Plasma-HasConfigurationInterface")).toBool(), HasConfigurationInterfaceRole); } + + emit configurationChanged(); } } @@ -178,6 +182,7 @@ void CurrentContainmentActionsModel::remove(int row) delete m_plugins[action]; m_plugins.remove(action); m_removedTriggers << action; + emit configurationChanged(); } }