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

Toni Asensi Esteve <[email protected]> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
         Resolution|---                         |FIXED
      Latest Commit|                            |https://invent.kde.org/util
                   |                            |ities/krusader/-/commit/4b7
                   |                            |f16ca665412b62512bd03f286c1
                   |                            |fd88521e1e
             Status|ASSIGNED                    |RESOLVED

--- Comment #5 from Toni Asensi Esteve <[email protected]> ---
Git commit 4b7f16ca665412b62512bd03f286c1fd88521e1e by Toni Asensi Esteve.
Committed on 22/11/2026 at 23:55.
Pushed by asensi into branch 'master'.

Solve the issue where middle-clicking a tab closes two tabs instead of one

Note: As Davide Gianforte wrote, if Qt 6.11 or later is used, a problem is
caused by a new
behavior in QTabBar: `QTabBar` now emits `tabCloseRequested` when a tab is
middle-clicked
and `tabsClosable` is true
(https://doc.qt.io/qt-6/whatsnew611.html#qt-widgets-module).
Krusader already handles middle-clicking in `PanelTabBar::mousePressEvent()`,
therefore
the `QTabBar` handling in `mouseReleaseEvent()` would attempt to close the same
tab again.

FIXED: [ 528526 ] Middle mouse button to close a tab closes two tabs

Revision: https://invent.kde.org/utilities/krusader/-/merge_requests/224

M  +26   -0    app/paneltabbar.cpp

https://invent.kde.org/utilities/krusader/-/commit/4b7f16ca665412b62512bd03f286c1fd88521e1e

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

Reply via email to