https://bugs.kde.org/show_bug.cgi?id=504878

Méven <[email protected]> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|ASSIGNED                    |RESOLVED
         Resolution|---                         |FIXED
      Latest Commit|                            |https://invent.kde.org/syst
                   |                            |em/dolphin/-/commit/230032b
                   |                            |939b5c261e2ee95915d14d8db17
                   |                            |3c70c6

--- Comment #4 from Méven <[email protected]> ---
Git commit 230032b939b5c261e2ee95915d14d8db173c70c6 by Méven Car.
Committed on 11/08/2026 at 17:31.
Pushed by meven into branch 'master'.

kitemlistcontroller: select the item on a right-button double-click

When right-clicking an item and then rapidly right-clicking a second item,
the general view context menu was shown instead of the second item's menu.

The rapid second click is delivered as a double-click rather than a press,
so mouseDoubleClickEvent() runs instead of mousePressEvent(). For the right
button that handler returned early without applying any selection, unlike a
single right-click which selects the item in onPress(). contextMenuEvent()
only opens an item's menu when that item is selected, so it fell back to the
view menu.

Treat a right-button double-click like a single right-click press so the item
under the cursor gets selected and the following context menu targets it.

M  +11   -0    src/kitemviews/kitemlistcontroller.cpp
M  +56   -0    src/tests/kitemlistcontrollertest.cpp

https://invent.kde.org/system/dolphin/-/commit/230032b939b5c261e2ee95915d14d8db173c70c6

-- 
You are receiving this mail because:
You are watching all bug changes.

Reply via email to