diff options
| author | Pan Zhang <[email protected]> | 2026-05-11 18:05:13 +0800 |
|---|---|---|
| committer | Pan Zhang <[email protected]> | 2026-05-11 18:05:13 +0800 |
| commit | 66e66b7c2881cfb182ec4bf0b18a959371748300 (patch) | |
| tree | 48bbabc5f82307bd379c5444c0328e80313f137c /src/views | |
| parent | 1510a52bc05cc7c785399e419f087e28a66a4c5b (diff) | |
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.
BUG: 520002
Diffstat (limited to 'src/views')
0 files changed, 0 insertions, 0 deletions
