Author: reinhard
Date: 2007-01-12 12:55:25 -0600 (Fri, 12 Jan 2007)
New Revision: 9297
Modified:
trunk/gnue-navigator/src/UIwx26.py
Log:
Fixed closing of navigator window.
Modified: trunk/gnue-navigator/src/UIwx26.py
===================================================================
--- trunk/gnue-navigator/src/UIwx26.py 2007-01-12 18:25:21 UTC (rev 9296)
+++ trunk/gnue-navigator/src/UIwx26.py 2007-01-12 18:55:25 UTC (rev 9297)
@@ -131,7 +131,11 @@
def __on_close(self, event):
if event.CanVeto() and self.__current_form is not None:
+ # Switch off keepalive so the application ends now.
+ self.__instance.keepalive(False)
self.__current_form.close()
+ # If closing failed (user aborted when asked to save), continue app.
+ self.__instance.keepalive(True)
event.Veto()
else:
self.frame.Destroy()
_______________________________________________
commit-gnue mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/commit-gnue