hggtk/synch: fix return value of window close button handler
authorTK Soh <teekaysoh@yahoo.com>
Fri, 25 Apr 2008 13:50:39 +0100
changeset 1141 f6b8c31da4da
parent 1140 d24c108f6ae0
child 1143 cb9edf30b6f5
hggtk/synch: fix return value of window close button handler which closes the dialog after the 'command running' prompt is dismissed, without terminating the application.
hggtk/synch.py
--- a/hggtk/synch.py	Fri Apr 25 13:38:25 2008 +0100
+++ b/hggtk/synch.py	Fri Apr 25 13:50:39 2008 +0100
@@ -321,7 +321,6 @@
     def _do_close(self):
         if self._cmd_running():
             error_dialog(self, "Can't close now", "command is running")
-            return True
         else:
             self._save_settings()
             gtk.main_quit()
@@ -333,6 +332,7 @@
 
     def _delete(self, widget, event):
         self._do_close()
+        return True
    
     def _toolbutton(self, stock, label, handler,
                     menu=None, userdata=None, tip=None):