Kiln » TortoiseHg » TortoiseHg
Clone URL:  
Pushed to one repository · View In Graph Contained in 1.9.2, 1.9.3, and 2.0

mq: disable queue selector if only one queue is present

If I use setShown() instead of setEnabled (to hide the combo), the OptionsDialog
suddenly stops working.

Changeset 7c2643a5d431

Parent a36d8ac332cd

by Steve Borho

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

 
405
406
407
 
408
409
410
 
405
406
407
408
409
410
411
@@ -405,6 +405,7 @@
  qname = qname[:-len(activestr)]   self.queueCombo.addItem(hglib.tounicode(qname))   self.queueCombo.setCurrentIndex(current) + self.queueCombo.setEnabled(self.queueCombo.count() > 1)     # TODO: maintain current selection   applied = set([p.name for p in repo.mq.applied])