Skip to content

File: Close moves to another open model instead of leaving an empty window - #400

Open
danyill wants to merge 1 commit into
mainfrom
fix/close-selects-other-window
Open

danyill wants to merge 1 commit into
mainfrom
fix/close-selects-other-window

Conversation

@danyill

@danyill danyill commented Dec 1, 2026

Copy link
Copy Markdown
Contributor

With other model windows open, File ▸ Close (Ctrl+W) asks the usual save question, then closes this window and brings the most recently used other model window to the front. With only one window open, Close behaves as before: an empty window and the start page.

  • Windows are stamped when activated (open_models.note_activated / most_recent_other).
  • The window closes through its own close handler, which no longer asks to save a second time. If something refuses the close, the window is left as it was.
  • Tests: tests/unit/test_close_selects_other_window.py.

…indow

With other model windows open, File > Close (Ctrl+W) now asks the usual
save question, then closes this window (unregistering it through its own
closeEvent, which no longer prompts again) and brings forward the most
recently activated other window. Windows are stamped on activation in
open_models (note_activated / most_recent_other). The last window keeps
the old behaviour: an empty window and the start page. Tooltip, help
reference, ribbon snapshot and pt_BR catalogue updated.

Closes nothing

This branch has not been deployed

No deployments
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.

1 participant