Skip to content

Auto close the window when the last tab closes after a confirmation - #771

Open
dualfroz wants to merge 1 commit into
linuxmint:masterfrom
dualfroz:fix/749-auto-close-after-dialog
Open

dualfroz wants to merge 1 commit into
linuxmint:masterfrom
dualfroz:fix/749-auto-close-after-dialog

Conversation

@dualfroz

Copy link
Copy Markdown

with auto close on, closing the last tab with unsaved changes left the window open after "Close without Saving" or "Save As...", because the check in _xed_cmd_file_close_tab ran while the dialog was still up and the tab wasnt closed yet. the check is now a small helper that also runs when the tab actually gets closed from the dialog or after saving, not for close all or quit. Fixes #749

The auto close setting was only checked right after a tab was closed
directly. When the last tab had unsaved changes, it was closed later
from the confirmation dialog ("Close without Saving") or after saving
it ("Save", "Save As..."), and the window stayed open. Check the
setting in those paths too, except when closing all tabs or quitting.
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.

Closing a tab with unsaved changes ignores auto close

1 participant