[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:
parent
dcf08486fe
commit
7e0b719f1e
@ -1010,11 +1010,12 @@ void ContainmentInterface::mousePressEvent(QMouseEvent *event)
|
|||||||
|
|
||||||
m_contextMenu = desktopMenu;
|
m_contextMenu = desktopMenu;
|
||||||
|
|
||||||
|
emit m_containment->contextualActionsAboutToShow();
|
||||||
|
|
||||||
if (applet) {
|
if (applet) {
|
||||||
emit applet->contextualActionsAboutToShow();
|
emit applet->contextualActionsAboutToShow();
|
||||||
addAppletActions(desktopMenu, applet, event);
|
addAppletActions(desktopMenu, applet, event);
|
||||||
} else {
|
} else {
|
||||||
emit m_containment->contextualActionsAboutToShow();
|
|
||||||
addContainmentActions(desktopMenu, event);
|
addContainmentActions(desktopMenu, event);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user