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: disable the mq button if there is no queue

Changeset a8e51ca68fa9

Parent 6c859e9ce542

by Adrian Buehlmann

Changes to 2 files · Browse files at a8e51ca68fa9 Showing diff from parent 6c859e9ce542 Diff from another changeset...

 
1666
1667
1668
 
1669
1670
1671
 
1666
1667
1668
1669
1670
1671
1672
@@ -1666,6 +1666,7 @@
  self.mqtb.handler_block_by_func(self.mq_clicked)   self.mqtb.set_active(enable)   self.mqtb.handler_unblock_by_func(self.mq_clicked) + self.enable_cmd('mq', self.mqwidget.has_mq())     def mq_clicked(self, toolbutton, data=None):   self.enable_mqpanel(self.mqtb.get_active())
 
392
393
394
 
 
 
395
396
397
 
392
393
394
395
396
397
398
399
400
@@ -392,6 +392,9 @@
  cmdline = ['hg', 'qup', patch]   self.cmd.execute(cmdline, self.cmd_done)   + def has_mq(self): + return self.mqloaded and os.path.isdir(self.repo.mq.path) +   def has_patch(self):   """ return True if MQ has applicable patch """   if self.mqloaded: