From 5749b01fe3cbaf8596729e441662046565c0f58d Mon Sep 17 00:00:00 2001 From: Marco Martin Date: Tue, 28 Oct 2014 18:03:34 +0100 Subject: [PATCH] no contextmenu for invisible applets Change-Id: Ia94a467d860243f42bda756d9f94f4ad685446c7 --- src/scriptengines/qml/plasmoid/containmentinterface.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/scriptengines/qml/plasmoid/containmentinterface.cpp b/src/scriptengines/qml/plasmoid/containmentinterface.cpp index fae64c69a..9af898d4e 100644 --- a/src/scriptengines/qml/plasmoid/containmentinterface.cpp +++ b/src/scriptengines/qml/plasmoid/containmentinterface.cpp @@ -719,7 +719,7 @@ void ContainmentInterface::mousePressEvent(QMouseEvent *event) Plasma::Applet *applet = 0; foreach (QObject *appletObject, m_appletInterfaces) { if (AppletInterface *ai = qobject_cast(appletObject)) { - if (ai->contains(ai->mapFromItem(this, event->posF()))) { + if (ai->isVisible() && ai->contains(ai->mapFromItem(this, event->posF()))) { applet = ai->applet(); emit ai->contextualActionsAboutToShow(); break;