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.
--- 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):