commit-gnue
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[gnue] r9297 - trunk/gnue-navigator/src


From: reinhard
Subject: [gnue] r9297 - trunk/gnue-navigator/src
Date: Fri, 12 Jan 2007 12:55:26 -0600 (CST)

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()





reply via email to

[Prev in Thread] Current Thread [Next in Thread]