# HG changeset patch
# User Yuki KODAMA <endflow....@gmail.com>
# Date 1260981515 -32400
# Branch stable
# Node ID c7b16144f4b3f79e3ca3542bbe5f887ca8844847
# Parent  eb7942d9d12eda56255b8927af5da5c79592d64d
commit: prevent AttributeError related 'response' signal

Closes #810

diff --git a/tortoisehg/hgtk/commit.py b/tortoisehg/hgtk/commit.py
--- a/tortoisehg/hgtk/commit.py
+++ b/tortoisehg/hgtk/commit.py
@@ -35,7 +35,6 @@
         gtklib.set_tortoise_keys(self)
         self.set_resizable(False)
         self.set_has_separator(False)
-        self.connect('response', self.response)

         self.newbranch = None
         self.closebranch = False
@@ -57,9 +56,7 @@
         self.newbranchradio = gtk.RadioButton(nochanges,
                 _('Open a new named branch'))
         self.newbranchradio.set_active(True)
-        self.newbranchradio.connect('toggled', self.nbtoggle)
         self.branchentry = gtk.Entry()
-        self.branchentry.connect('activate', self.activated)
         self.closebranchradio = gtk.RadioButton(nochanges,
                 _('Close current named branch'))

@@ -75,6 +72,11 @@
         table.add_row(self.closebranchradio)
         table.add_row(nochanges)

+        # signal handlers
+        self.connect('response', self.response)
+        self.newbranchradio.connect('toggled', self.nbtoggle)
+        self.branchentry.connect('activate', self.activated)
+
         # prepare to show
         if branch:
             self.newbranch = branch

Attachment: thg-kuy-stable_rev5183.patch
Description: Binary data

------------------------------------------------------------------------------
This SF.Net email is sponsored by the Verizon Developer Community
Take advantage of Verizon's best-in-class app development support
A streamlined, 14 day to market process makes app distribution fast and easy
Join now and get one step closer to millions of Verizon customers
http://p.sf.net/sfu/verizon-dev2dev 
_______________________________________________
Tortoisehg-develop mailing list
Tortoisehg-develop@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/tortoisehg-develop

Reply via email to