diff options
| author | Oliver Beard <[email protected]> | 2023-11-19 17:58:37 +0000 |
|---|---|---|
| committer | Oliver Beard <[email protected]> | 2023-11-21 09:33:18 +0000 |
| commit | 26adfe689a70af60933809c6106723ff5962b67e (patch) | |
| tree | 21c34992551ab23ed33a45bf9cf8be6d063b5a05 /src/views/dolphinview.cpp | |
| parent | cee87e2e33154be460ee78b8163e30d5803fdd3e (diff) | |
dolphinview: Fix right-click on header whilst unfocused
When the window is unfocused, there's no activeWindow and right-clicking on the header causes the menu to appear with window decorations.
Diffstat (limited to 'src/views/dolphinview.cpp')
| -rw-r--r-- | src/views/dolphinview.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/views/dolphinview.cpp b/src/views/dolphinview.cpp index 704ecda0c..3ada359a5 100644 --- a/src/views/dolphinview.cpp +++ b/src/views/dolphinview.cpp @@ -1147,7 +1147,7 @@ void DolphinView::slotHeaderContextMenuRequested(const QPointF &pos) { ViewProperties props(viewPropertiesUrl()); - QPointer<QMenu> menu = new QMenu(QApplication::activeWindow()); + QPointer<QMenu> menu = new QMenu(this); KItemListView *view = m_container->controller()->view(); const QList<QByteArray> visibleRolesSet = view->visibleRoles(); |
