Kiln » TortoiseHg » TortoiseHg
Clone URL:  
Pushed to one repository · View In Graph Contained in 0.8.1, 0.8.2, and 0.8.3

thgconfig: improve behavior of URL textfield

fixes issue #387

Changeset c477cecc73a6

Parent 7ea2c9a7dd76

by Yuki KODAMA

Changes to one file · Browse files at c477cecc73a6 Showing diff from parent 7ea2c9a7dd76 Diff from another changeset...

 
276
277
278
279
280
281
282
283
 
 
 
 
 
 
 
 
 
284
285
286
 
316
317
318
319
 
 
 
 
320
321
322
 
276
277
278
 
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
 
324
325
326
 
327
328
329
330
331
332
333
@@ -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 '')