From: Elvis Angelaccio Date: Sat, 2 Jan 2021 18:22:10 +0000 (+0100) Subject: Revert "ContextMenu: Allow plugins submenus to react to Shift modifiers" X-Git-Url: https://cloud.milkyroute.net/gitweb/dolphin.git/commitdiff_plain/f8d1b494db19904679101139eb81a5715061aa11 Revert "ContextMenu: Allow plugins submenus to react to Shift modifiers" This reverts commit ce3c2435250f5eb8a3c9322359b25c46d2b6fb96. The apidox of setParentWidget says: Set the parent widget for any dialogs being shown. This should normally be your mainwindow, not a popup menu, so that it still exists even after the popup is closed (e.g. error message from KRun) and so that QAction::setStatusTip can find a statusbar, too. CCBUG: 425997 --- diff --git a/src/dolphincontextmenu.cpp b/src/dolphincontextmenu.cpp index 2d06449e7..eb3f641e5 100644 --- a/src/dolphincontextmenu.cpp +++ b/src/dolphincontextmenu.cpp @@ -225,7 +225,7 @@ void DolphinContextMenu::openItemContextMenu() const KFileItemListProperties& selectedItemsProps = selectedItemsProperties(); KFileItemActions fileItemActions; - fileItemActions.setParentWidget(this); + fileItemActions.setParentWidget(m_mainWindow); fileItemActions.setItemListProperties(selectedItemsProps); if (m_selectedItems.count() == 1) {