# HG changeset patch
# User Yuki KODAMA <[email protected]>
# Date 1244870018 -32400
# Node ID 0b15a20db2f277e1f79977566366ae788c9196a0
# Parent  d6591ec1ab9018e30e7881e559f84b6515b207e4
thgconfig: prevent warnings when pasting URL to PathEditDialog

diff --git a/hggtk/thgconfig.py b/hggtk/thgconfig.py
--- a/hggtk/thgconfig.py
+++ b/hggtk/thgconfig.py
@@ -284,12 +284,14 @@
                 if enable:
                     self.entries[n][2] = e.connect('changed', self.changedurl)
                 else:
-                    e.disconnect(h)
+                    if e.handler_is_connected(h):
+                        e.disconnect(h)
             else:
                 if enable:
                     self.entries[n][2] = e.connect('changed', self.changed)
                 else:
-                    e.disconnect(h)
+                    if e.handler_is_connected(h):
+                        e.disconnect(h)

     def urlparse(self, path):
         if path.startswith('ssh://'):

Attachment: thg-crew-kuy_rev2832.patch
Description: Binary data

------------------------------------------------------------------------------
Crystal Reports - New Free Runtime and 30 Day Trial
Check out the new simplified licensing option that enables unlimited
royalty-free distribution of the report engine for externally facing 
server and web deployment.
http://p.sf.net/sfu/businessobjects
_______________________________________________
Tortoisehg-develop mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/tortoisehg-develop

Reply via email to