# HG changeset patch
# User Giampaolo Fadel <gp.fa...@gmail.com>
# Date 1245670010 -7200
# Node ID dfc2dcf1430b235d995b2ff603cb3f6585443b39
# Parent  7fc45062a3b41bba5f53436412c9c9a4078f8220
thgconfig: do not disable the apply button if the apply fails

diff --git a/hggtk/thgconfig.py b/hggtk/thgconfig.py
--- a/hggtk/thgconfig.py
+++ b/hggtk/thgconfig.py
@@ -978,12 +978,12 @@
             f = open(self.fn, "w")
             f.write(str(self.ini))
             f.close()
+            self._btn_apply.set_sensitive(False)
+            self.dirty = False
         except IOError, e:
             dialog.error_dialog(self, _('Unable to write configuration file'),
                     str(e))
 
-        self._btn_apply.set_sensitive(False)
-        self.dirty = False
         return 0
 
 def run(ui, *pats, **opts):

------------------------------------------------------------------------------
Are you an open source citizen? Join us for the Open Source Bridge conference!
Portland, OR, June 17-19. Two days of sessions, one day of unconference: $250.
Need another reason to go? 24-hour hacker lounge. Register today!
http://ad.doubleclick.net/clk;215844324;13503038;v?http://opensourcebridge.org
_______________________________________________
Tortoisehg-develop mailing list
Tortoisehg-develop@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/tortoisehg-develop

Reply via email to