1. TortoiseHg
  2. TortoiseHg
  3. thg

Commits

Steve Borho  committed 2c48f3c

shelve: use simpler QComboBox query methods

Drop TODO for disabling entries in each other's combo box as it does not appear
to be a supported function without re-implementing the combo box by hand.

  • Participants
  • Parent commits fff070f
  • Branches default

Comments (0)

Files changed (1)

File tortoisehg/hgqt/shelve.py

View file
  • Ignore whitespace
             self.deleteShelfA.setEnabled(False)
         else:
             self.deleteShelfA.setEnabled(True)
-            rev = hglib.fromunicode(self.comboa.itemText(index))
-            # TODO: disable this patch/shelve in comboB
+            rev = hglib.fromunicode(self.comboa.currentText())
         self.browsea.setContext(self.repo.changectx(rev))
 
     @pyqtSlot(int)
     def comboBChanged(self, index):
         self.deleteShelfB.setEnabled(True)
-        rev = hglib.fromunicode(self.combob.itemText(index))
+        rev = hglib.fromunicode(self.combob.currentText())
         self.browseb.setContext(self.repo.changectx(rev))
-        # TODO: disable this patch/shelve in comboA
 
     def refresh(self):
         self.browsea.refresh()