From 9d1727a1a4ffb32d205f3d913b5837b744dc5589 Mon Sep 17 00:00:00 2001 From: Marco Martin Date: Tue, 3 Jun 2014 16:35:01 +0200 Subject: [PATCH] Plasma1 behavior: no remove action in panels the remove context menu for applets is only visible when the panel controller is open less accidental removal --- src/scriptengines/qml/plasmoid/containmentinterface.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/scriptengines/qml/plasmoid/containmentinterface.cpp b/src/scriptengines/qml/plasmoid/containmentinterface.cpp index 3b72a0026..7cec792ce 100644 --- a/src/scriptengines/qml/plasmoid/containmentinterface.cpp +++ b/src/scriptengines/qml/plasmoid/containmentinterface.cpp @@ -781,7 +781,8 @@ void ContainmentInterface::addAppletActions(QMenu &desktopMenu, Plasma::Applet * } } - if (containment()->immutability() == Plasma::Types::Mutable) { + if (containment()->immutability() == Plasma::Types::Mutable && + (containment()->containmentType() != Plasma::Types::PanelContainment || containment()->isUserConfiguring())) { QAction *closeApplet = applet->actions()->action("remove"); //qDebug() << "checking for removal" << closeApplet; if (closeApplet) {