diff options
| author | Ismael Asensio <[email protected]> | 2019-12-22 16:59:54 +0100 |
|---|---|---|
| committer | Ismael Asensio <[email protected]> | 2020-01-06 16:03:46 +0100 |
| commit | 296082b2b9297ddae1310d03bdb89693a247480c (patch) | |
| tree | 4071f4c49450b9d52d7de1747be8037b504fb37c | |
| parent | 98dec73ecc5ba9a007a89aca3b865c8fdecba170 (diff) | |
(search) Keep menu open when selecting tags
Summary:
Keeps the `Tags` menu open while selecting and deselecting tags in the
search panel, saving many mouse clicks for multiple tags.
It cannot be done natively on `QMenu` (https://bugreports.qt.io/browse/QTBUG-6635)
but it is a one-liner and I haven't seen any bad behavior so far.
Test Plan:
{F7853717}
- `Tags` menu does not close when selecting/deselecting tags
- Tag search is consistent
- Clicking anywhere else will close the menu
Reviewers: #dolphin, elvisangelaccio, ngraham, #vdg
Reviewed By: #dolphin, elvisangelaccio, #vdg
Subscribers: #vdg, broulik, kfm-devel
Tags: #dolphin
Differential Revision: https://phabricator.kde.org/D26343
| -rw-r--r-- | src/search/dolphinfacetswidget.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/search/dolphinfacetswidget.cpp b/src/search/dolphinfacetswidget.cpp index 34719730b..33c3cea24 100644 --- a/src/search/dolphinfacetswidget.cpp +++ b/src/search/dolphinfacetswidget.cpp @@ -280,6 +280,8 @@ void DolphinFacetsWidget::updateTagsMenuItems(const QUrl&, const KFileItemList& removeSearchTag(tagName); } emit facetChanged(); + + m_tagsSelector->menu()->show(); }); } |
