Skip to content

Make restoreState restore the focused dock widget - #862

Open
itsdaxen wants to merge 1 commit into
githubuser0xFFFF:masterfrom
itsdaxen:restorestate-focused-dock-widget
Open

Make restoreState restore the focused dock widget#862
itsdaxen wants to merge 1 commit into
githubuser0xFFFF:masterfrom
itsdaxen:restorestate-focused-dock-widget

Conversation

@itsdaxen

@itsdaxen itsdaxen commented Aug 7, 2026

Copy link
Copy Markdown

Fixes #852

saveState() / restoreState() preserved the layout and each area's current tab, but not the globally focused dock widget, so the focused split area was lost after restoring state.

Changes:

  • Save the focused dock widget's objectName() in the docking state.
  • Restore that focus after the normal state restoration completes.

Before

before

After

after

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

restoreState doesn't restore which split area was current

1 participant