Kiln » TortoiseHg » TortoiseHg
Clone URL:  
Pushed to one repository · View In Graph Contained in 0.9, 0.9.1, and 0.9.1.1

history: prevent stop toolbutton from being enabled after preview

Only disable widgets in the syncbar that were previously enabled. Everything in
the disabled list is re-enabled when preview mode is exited.

Changeset cf387ff33853

Parent 3bfd981048b5

by Steve Borho

Changes to one file · Browse files at cf387ff33853 Showing diff from parent 3bfd981048b5 Diff from another changeset...

 
1055
1056
1057
1058
 
1059
1060
1061
 
1055
1056
1057
 
1058
1059
1060
1061
@@ -1055,7 +1055,7 @@
  tb.set_sensitive(False)   disabled.append(tb)   def disable_child(w): - if w != self.ppullcombo: + if w != self.ppullcombo and w.get_property('sensitive'):   w.set_sensitive(False)   disabled.append(w)   self.syncbox.foreach(disable_child)