Revert "ContextMenu: Allow plugins submenus to react to Shift modifiers"

This reverts commit ce3c243525.

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
This commit is contained in:
Elvis Angelaccio 2021-01-02 19:22:10 +01:00
parent f01a61b76c
commit f8d1b494db

View 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) {