Commit f8d1b494 authored by Elvis Angelaccio's avatar Elvis Angelaccio
Browse files

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

This reverts commit ce3c2435.

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
parent f01a61b7
Pipeline #46164 passed with stage
in 6 minutes and 47 seconds
...@@ -225,7 +225,7 @@ void DolphinContextMenu::openItemContextMenu() ...@@ -225,7 +225,7 @@ void DolphinContextMenu::openItemContextMenu()
const KFileItemListProperties& selectedItemsProps = selectedItemsProperties(); const KFileItemListProperties& selectedItemsProps = selectedItemsProperties();
KFileItemActions fileItemActions; KFileItemActions fileItemActions;
fileItemActions.setParentWidget(this); fileItemActions.setParentWidget(m_mainWindow);
fileItemActions.setItemListProperties(selectedItemsProps); fileItemActions.setItemListProperties(selectedItemsProps);
if (m_selectedItems.count() == 1) { if (m_selectedItems.count() == 1) {
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment