fix: start page always closes on document open #207

Merged
forbes merged 1 commits from fix/start-page-blocks-document into main 2026-02-14 18:44:38 +00:00
Owner

Fixes #192

Problem

The start page tab persists after opening a document, blocking workflow and causing hangs on close.

Two root causes:

  1. postStart() checks GetBool("closeStart", false) — default is false, so the start page never auto-closes after a document action.

  2. When another MDI tab activates, onMdiSubWindowActivated() disables all QListView updates on the start page. If the widget is then destroyed with updates disabled, Qt can hang during cleanup.

Fix

  • Remove the closeStart preference gate — always close the start page when a document is opened or created
  • Call setListViewUpdatesEnabled(true) before closing to prevent the hang
  • Add hideEvent override as a safety net to re-enable updates whenever the start page is hidden
Fixes #192 ## Problem The start page tab persists after opening a document, blocking workflow and causing hangs on close. **Two root causes:** 1. `postStart()` checks `GetBool("closeStart", false)` — default is `false`, so the start page never auto-closes after a document action. 2. When another MDI tab activates, `onMdiSubWindowActivated()` disables all QListView updates on the start page. If the widget is then destroyed with updates disabled, Qt can hang during cleanup. ## Fix - Remove the `closeStart` preference gate — always close the start page when a document is opened or created - Call `setListViewUpdatesEnabled(true)` before closing to prevent the hang - Add `hideEvent` override as a safety net to re-enable updates whenever the start page is hidden
forbes added 1 commit 2026-02-14 18:42:43 +00:00
fix: start page always closes on document open (#192)
Some checks failed
Build and Test / build (pull_request) Has been cancelled
444aaac1ee
Remove the closeStart preference check so the start page MDI tab
always closes when a document is opened or created. Re-enable
QListView updates before closing to prevent Qt hang during widget
destruction.

Add hideEvent override as a safety net to re-enable disabled
QListView updates whenever the start page is hidden.
forbes merged commit 0b3d4b1274 into main 2026-02-14 18:44:38 +00:00
Sign in to join this conversation.
No Reviewers
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: kindred/create#207