Kiln » TortoiseHg » TortoiseHg
Clone URL:  
Pushed to one repository · View In Graph Contained in 1.1, 1.1.1, and 1.1.2

history: Fix enable of patch branch panel at dialog start

Changeset a77eff40cd14

Parent 59f48801dc45

by Peer Sommerlund

Changes to one file · Browse files at a77eff40cd14 Showing diff from parent 59f48801dc45 Diff from another changeset...

 
906
907
908
909
 
910
 
911
912
913
 
2090
2091
2092
2093
2094
2095
2096
2097
 
 
2098
2099
2100
 
2687
2688
2689
2690
 
2691
2692
2693
 
906
907
908
 
909
910
911
912
913
914
 
2091
2092
2093
 
 
 
 
 
2094
2095
2096
2097
2098
 
2685
2686
2687
 
2688
2689
2690
2691
@@ -906,8 +906,9 @@
  else:   item.set_sensitive(False)   - # enable MQ panel + # enable panels   self.enable_mqpanel() + self.enable_pbranchpanel()     def get_proxy_args(self):   item = self.get_menuitem('use-proxy-server') @@ -2090,11 +2091,8 @@
  self.hpaned.set_position(self.setting_hpos)   if hasattr(self, 'mqpaned') and self.mqtb.get_active():   self.mqpaned.set_position(self.setting_mqhpos) - if hasattr(self, 'pbranchpaned'): - pos = 0 - if self.pbranchtb.get_active(): - pos = self.setting_pbranchhpos - self.pbranchpaned.set_position(pos) + if hasattr(self, 'pbranchpaned') and self.pbranchtb.get_active(): + self.pbranchpaned.set_position(self.setting_pbranchhpos)     def thgdiff(self, treeview):   'ctrl-d handler' @@ -2687,7 +2685,7 @@
  if not hasattr(self, 'pbranchpaned'):   return   if enable is None: - enable = self.setting_pbvis and self.pbranchwidget.has_patch() + enable = self.setting_pbranchvis and self.pbranchwidget.has_patch()   oldpos = self.pbranchpaned.get_position()   self.pbranchpaned.set_position(enable and self.setting_pbranchhpos or 0)   if not enable and oldpos: