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
This commit is contained in:
Marco Martin 2014-06-03 16:35:01 +02:00
parent 051dabae5e
commit 9d1727a1a4

View File

@ -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) {