]> cloud.milkyroute.net Git - dolphin.git/commitdiff
Revert "ContextMenu: Allow plugins submenus to react to Shift modifiers"
authorElvis Angelaccio <elvis.angelaccio@kde.org>
Sat, 2 Jan 2021 18:22:10 +0000 (19:22 +0100)
committerElvis Angelaccio <elvis.angelaccio@kde.org>
Sat, 2 Jan 2021 18:22:10 +0000 (19:22 +0100)
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

src/dolphincontextmenu.cpp

index 2d06449e719cc7de22402c46cc34bb9ba47e9207..eb3f641e5ae6ffe78e237c30e07d5b9cfbf67feb 100644 (file)
@@ -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) {