# HG changeset patch
# User Yuki KODAMA <endflow....@gmail.com>
# Date 1252252661 -32400
# Node ID 0cd7e71b1214984b58fe1f9b3cf59bbcb833609c
# Parent  15847afbcddc76f639127407ea2873f9dff151e2
thgconfig: change options of confirm dialog on exit

diff --git a/hggtk/thgconfig.py b/hggtk/thgconfig.py
--- a/hggtk/thgconfig.py
+++ b/hggtk/thgconfig.py
@@ -673,12 +673,16 @@

     def should_live(self, *args):
         if self.dirty and not self.readonly:
-            ret = gdialog.Confirm(_('Confirm quit without saving?'), [], self,
-                            _('Yes to abandon changes, No to continue')).run()
-            if ret != gtk.RESPONSE_YES:
+            ret = gdialog.CustomPrompt(_('Confirm Exit'),
+                        _("Exit after saving changes?"), self,
+                        (_('&Yes'), _('&No (discard changes)'),
+                         _('&Cancel')), default=2, esc=2).run()
+            if ret == 2:
                 if len(args) != 0:
                    self.emit_stop_by_name('response')
                 return True
+            elif ret == 0:
+                self._apply_clicked()
         return False

     def focus_field(self, focusfield):

Attachment: thg-kuy_rev3847.patch
Description: Binary data

------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day 
trial. Simplify your report design, integration and deployment - and focus on 
what you do best, core application coding. Discover what's new with 
Crystal Reports now.  http://p.sf.net/sfu/bobj-july
_______________________________________________
Tortoisehg-develop mailing list
Tortoisehg-develop@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/tortoisehg-develop

Reply via email to