# HG changeset patch
# User Yuki KODAMA <endflow....@gmail.com>
# Date 1253544177 -32400
# Node ID 805554cc13d85d6cebd468c213290f35f3e0ce2c
# Parent  d237f059242d4917f02dfb9633c6fb400259409a
update: remove redundant desensitizings

diff --git a/tortoisehg/hgtk/update.py b/tortoisehg/hgtk/update.py
--- a/tortoisehg/hgtk/update.py
+++ b/tortoisehg/hgtk/update.py
@@ -122,19 +122,15 @@
         self.update_revisions()

         # options
-        self.opt_buttons = []
         group = gtk.RadioButton(None, _('Allow merge with local
changes (default)'))
         addrow(_('Options:'), group, expand=False)
-        self.opt_buttons.append(group)

         btn = gtk.RadioButton(group, _('Abort if local changes found
(-c/--check)'))
         addrow('', btn, expand=False)
-        self.opt_buttons.append(btn)
         self.opt_check = btn

         btn = gtk.RadioButton(group, _('Discard local changes, no
backup (-C/--clean)'))
         addrow('', btn, expand=False)
-        self.opt_buttons.append(btn)
         self.opt_clean = btn

         self.revcombo.connect('changed', lambda b: self.update_revisions())
@@ -177,13 +173,9 @@
         if mode == MODE_NORMAL:
             normal = True
             self.closebtn.grab_focus()
-            for btn in self.opt_buttons:
-                btn.set_sensitive(True)
         elif mode == MODE_UPDATING:
             normal = False
             self.cancelbtn.grab_focus()
-            for btn in self.opt_buttons:
-                btn.set_sensitive(False)
         else:
             raise _('unknown mode name: %s') % mode
         updating = not normal

Attachment: thg-kuy_rev4128.patch
Description: Binary data

------------------------------------------------------------------------------
Come build with us! The BlackBerry&reg; Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay 
ahead of the curve. Join us from November 9&#45;12, 2009. Register now&#33;
http://p.sf.net/sfu/devconf
_______________________________________________
Tortoisehg-develop mailing list
Tortoisehg-develop@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/tortoisehg-develop

Reply via email to