[Containment Interface] always emit contextualActionsAboutToShow for containment

The applet context menu contains containment actions which might be outdated if we don't call this.

Differential Revision: https://phabricator.kde.org/D6894
This commit is contained in:
Kai Uwe Broulik 2017-08-02 11:02:12 +02:00
parent dcf08486fe
commit 7e0b719f1e

View File

@ -1010,11 +1010,12 @@ void ContainmentInterface::mousePressEvent(QMouseEvent *event)
m_contextMenu = desktopMenu;
emit m_containment->contextualActionsAboutToShow();
if (applet) {
emit applet->contextualActionsAboutToShow();
addAppletActions(desktopMenu, applet, event);
} else {
emit m_containment->contextualActionsAboutToShow();
addContainmentActions(desktopMenu, event);
}