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: fix error when mq extension not present

fixes #634

Changeset df71d5d70f1e

Parent 57b5682cd114

by Adrian Buehlmann

Changes to one file · Browse files at df71d5d70f1e Showing diff from parent 57b5682cd114 Diff from another changeset...

 
1147
1148
1149
1150
1151
1152
1153
 
 
 
 
 
 
 
1154
1155
1156
 
1147
1148
1149
 
 
 
 
1150
1151
1152
1153
1154
1155
1156
1157
1158
1159
@@ -1147,10 +1147,13 @@
    self.incoming_disabled = []   for cmd in ('refresh', 'synchronize', 'mq'): - tb = self.get_toolbutton(cmd) - if tb: - tb.set_sensitive(False) - self.incoming_disabled.append(tb) + try: + tb = self.get_toolbutton(cmd) + if tb: + tb.set_sensitive(False) + self.incoming_disabled.append(tb) + except KeyError: + pass   def disable_child(w):   if w != self.ppullcombo and w.get_property('sensitive'):   w.set_sensitive(False)