diff --git a/src/scriptengines/qml/plasmoid/containmentinterface.cpp b/src/scriptengines/qml/plasmoid/containmentinterface.cpp index 670d0b645..f1762fe20 100644 --- a/src/scriptengines/qml/plasmoid/containmentinterface.cpp +++ b/src/scriptengines/qml/plasmoid/containmentinterface.cpp @@ -637,21 +637,17 @@ QList ContainmentInterface::actions() const //use a multimap to sort by action type QMultiMap actions; foreach (QAction *a, containment()->actions()->actions()) { - if (a->isEnabled()) { - actions.insert(a->data().toInt(), a); - } + actions.insert(a->data().toInt(), a); } foreach (QAction *a, containment()->corona()->actions()->actions()) { - if (a->isEnabled()) { - if (a->objectName() == QStringLiteral("lock widgets")) { - //It is up to the Containment to decide if the user is allowed or not - //to lock/unluck the widgets, so corona should not add one when there is none - //(user is not allow) and it shouldn't add another one when there is already - //one - continue; - } - actions.insert(a->data().toInt(), a); + if (a->objectName() == QStringLiteral("lock widgets")) { + //It is up to the Containment to decide if the user is allowed or not + //to lock/unluck the widgets, so corona should not add one when there is none + //(user is not allow) and it shouldn't add another one when there is already + //one + continue; } + actions.insert(a->data().toInt(), a); } return actions.values(); }