From 48dd5963d3696412559eabdf60ca401ae6887b88 Mon Sep 17 00:00:00 2001 From: Marco Martin Date: Thu, 2 Apr 2015 15:10:40 +0200 Subject: [PATCH] always return all the actuions it's task of the visualization(the toolbox) to show or hide them BUG:345788 Change-Id: I267ba99d7300b52c03877868204d628098d3c2aa --- src/scriptengines/qml/plasmoid/containmentinterface.cpp | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/scriptengines/qml/plasmoid/containmentinterface.cpp b/src/scriptengines/qml/plasmoid/containmentinterface.cpp index f48e37212..c6986f2df 100644 --- a/src/scriptengines/qml/plasmoid/containmentinterface.cpp +++ b/src/scriptengines/qml/plasmoid/containmentinterface.cpp @@ -167,6 +167,11 @@ void ContainmentInterface::init() connect(m_containment.data(), &Plasma::Containment::containmentTypeChanged, this, &ContainmentInterface::containmentTypeChanged); + connect(m_containment.data()->actions(), &KActionCollection::inserted, + this, &ContainmentInterface::actionsChanged); + connect(m_containment.data()->actions(), &KActionCollection::removed, + this, &ContainmentInterface::actionsChanged); + if (m_containment->corona()) { connect(m_containment->corona(), &Plasma::Corona::availableScreenRegionChanged, this, &ContainmentInterface::availableScreenRegionChanged); @@ -797,7 +802,7 @@ QList ContainmentInterface::actions() const foreach (const QString &name, actionOrder) { QAction *a = orderedActions.value(name); - if (a && a->isVisible() && !a->menu()) { + if (a && !a->menu()) { actionList << a; } ++i;