From dc3beae3ab2c55cd3501e17f93b51e93e876a177 Mon Sep 17 00:00:00 2001 From: Derek Christ Date: Fri, 18 Jun 2021 15:12:54 +0200 Subject: Fix shift-action modifier in context menu Before this patch, the shift-action modifier in context menus did not work when a sub-context menu is open, that does not have the main context menu as its parent. The new fix installs an event filter on QApplication whenever a new context menu is opened to make the context menu aware of shift-presses even when a sub-context menu is in focus. BUG: 425997 FIXED-IN: 21.04 --- src/dolphincontextmenu.h | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'src/dolphincontextmenu.h') diff --git a/src/dolphincontextmenu.h b/src/dolphincontextmenu.h index 7f0b6988a..afd8b8c4d 100644 --- a/src/dolphincontextmenu.h +++ b/src/dolphincontextmenu.h @@ -74,8 +74,7 @@ public: Command open(); protected: - void childEvent(QChildEvent* event) override; - bool eventFilter(QObject* dest, QEvent* event) override; + bool eventFilter(QObject* object, QEvent* event) override; private: void openTrashContextMenu(); -- cgit v1.3