Skip to content

Commit

Permalink
Fix window not to be destroyed when choosing cancel on unsaved changes
Browse files Browse the repository at this point in the history
Closes #14
  • Loading branch information
otsaloma committed May 17, 2016
1 parent 582c7b4 commit ac092bc
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 2 additions & 0 deletions TODO.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,8 @@ Gaupol 1.0
* [x] Add support for IBM273, IBM1125, KOI8-T and KZ1048 character
encodings (whether these are actually available depends on your
version of Python)
* [x] Fix Cancel button behaviour when quitting Gaupol by closing the
main window and having unsaved changes (#14)
* [x] Bump GTK+ dependency to 3.12 or greater
* [x] Add Serbian translation (Miroslav Nikolić)
* [x] Update French translation (Jean van Kasteel)
Expand Down
4 changes: 2 additions & 2 deletions gaupol/agents/close.py
Original file line number Diff line number Diff line change
Expand Up @@ -169,10 +169,10 @@ def _on_quit_activate(self, *args):
self.quit()

@aeidon.deco.export
@aeidon.deco.silent(gaupol.Default)
def _on_window_delete_event(self, *args):
"""Quit Gaupol."""
self.quit()
with aeidon.util.silent(gaupol.Default):
self.quit()
return True

@aeidon.deco.export
Expand Down

0 comments on commit ac092bc

Please sign in to comment.