diff options
| author | Elvis Angelaccio <[email protected]> | 2021-01-02 19:22:10 +0100 |
|---|---|---|
| committer | Elvis Angelaccio <[email protected]> | 2021-01-02 19:22:10 +0100 |
| commit | f8d1b494db19904679101139eb81a5715061aa11 (patch) | |
| tree | 97a3ebaa7da50a40703a54618026032b06c160d6 /src/dolphincontextmenu.cpp | |
| parent | f01a61b76c8588a4df2054ab70e9a746a74f7817 (diff) | |
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
Diffstat (limited to 'src/dolphincontextmenu.cpp')
| -rw-r--r-- | src/dolphincontextmenu.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
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) { |
