# HG changeset patch # User Yuki KODAMA <endflow....@gmail.com> # Date 1247399820 -32400 # Node ID 36654fd353766314ea6a2c32b3a091e36dcaafc1 # Parent a0f069ba19a62c0a07e52a9db9ebbcc9a688a0c0 thgconfig: improve behavior of URL textfield
fixes issue #387 diff --git a/hggtk/thgconfig.py b/hggtk/thgconfig.py --- a/hggtk/thgconfig.py +++ b/hggtk/thgconfig.py @@ -276,11 +276,19 @@ self.sethandlers() self.lastproto = None - self.protcombo.connect('changed', self.changed) self.update_sensitive() self.show_all() def sethandlers(self, enable=True): + # protocol combobox + if enable: + self.pcombo_hid = self.protcombo.connect('changed', self.changed) + else: + h = self.pcombo_hid + if h and self.protcombo.handler_is_connected(h): + self.protcombo.disconnect(h) + + # other entries for n, (e, l, h) in self.entries.iteritems(): if enable: handler = self.changedurl if n == 'URL' else self.changed @@ -316,7 +324,10 @@ user, host, port, folder, pw, scheme = self.urlparse(path) self.entries['Alias'][0].set_text(alias) - self.entries['URL'][0].set_text(url.hidepassword(path)) + if scheme == 'local': + self.entries['URL'][0].set_text(path) + else: + self.entries['URL'][0].set_text(url.hidepassword(path)) self.entries['User'][0].set_text(user or '') self.entries['Host'][0].set_text(host or '') self.entries['Port'][0].set_text(port or '')
thg-stable-kuy_rev3125.patch
Description: Binary data
------------------------------------------------------------------------------ Enter the BlackBerry Developer Challenge This is your chance to win up to $100,000 in prizes! For a limited time, vendors submitting new applications to BlackBerry App World(TM) will have the opportunity to enter the BlackBerry Developer Challenge. See full prize details at: http://p.sf.net/sfu/Challenge
_______________________________________________ Tortoisehg-develop mailing list Tortoisehg-develop@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/tortoisehg-develop