Emit contextualActionsAboutToShow before showing the applet's contextualActions menu.
This is done by ContainmentInterface::mousePressEvent, but not in this code path, which is hit for applet panel popups. Folder View relies on this to update actions ahead of the menu being opened. BUG:366294
This commit is contained in:
parent
42193ae631
commit
8665999ee7
@ -758,6 +758,7 @@ bool AppletInterface::eventFilter(QObject *watched, QEvent *event)
|
|||||||
}
|
}
|
||||||
|
|
||||||
QMenu *desktopMenu = new QMenu;
|
QMenu *desktopMenu = new QMenu;
|
||||||
|
emit applet->contextualActionsAboutToShow();
|
||||||
ci->addAppletActions(desktopMenu, applet(), event);
|
ci->addAppletActions(desktopMenu, applet(), event);
|
||||||
|
|
||||||
if (!desktopMenu->isEmpty()) {
|
if (!desktopMenu->isEmpty()) {
|
||||||
|
Loading…
Reference in New Issue
Block a user