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

Méven <[email protected]> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
      Latest Commit|https://invent.kde.org/syst |https://invent.kde.org/syst
                   |em/dolphin/-/commit/66e66b7 |em/dolphin/-/commit/a2e703a
                   |c2881cfb182ec4bf0b18a959371 |7022283d63639e247ec05bed73f
                   |748300                      |03af31

--- Comment #3 from Méven <[email protected]> ---
Git commit a2e703a7022283d63639e247ec05bed73f03af31 by Méven Car.
Committed on 11/05/2026 at 15:34.
Pushed by meven into branch 'release/26.04'.

dolphintabpage: drop swapActiveView in RightView close path

The RightView case in setSplitViewEnabled(false) called swapActiveView() when
the secondary (right) pane was active. After the swap, m_primaryViewContainer
pointed to the right pane—the same object already stored in view—so the
subsequent m_primaryViewContainer->setActive(true) activated the pane about to
be removed, leaving the left pane orphaned as secondary.

Since the left pane is always the surviving view and already the primary, no
pointer swap is needed. Remove the conditional swap so that closing the right
pane always leaves m_primaryViewContainer pointing at the left pane, regardless
of which pane was active.


(cherry picked from commit 66e66b7c2881cfb182ec4bf0b18a959371748300)

Co-authored-by: Pan Zhang <[email protected]>

M  +0    -3    src/dolphintabpage.cpp

https://invent.kde.org/system/dolphin/-/commit/a2e703a7022283d63639e247ec05bed73f03af31

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

Reply via email to