Commits

Yuya Nishihara committed 0d62a83

mqdock: fix availability of patch actions after reload

It should set enabled flag according to the currently selected patch.

Comments (0)

Files changed (1)

tortoisehg/hgqt/mq.py

         self.qqueueComboWidget.setEnabled(self.qqueueComboWidget.count() > 1)
         self.qpushAllAct.setEnabled(bool(repo.thgmqunappliedpatches))
         self.qpushAct.setEnabled(bool(repo.thgmqunappliedpatches))
-        self.qdeleteAct.setEnabled(False)
-        self.setGuardsAct.setEnabled(False)
-        self.qrenameAct.setEnabled(False)
+        self._updatePatchActions()
         self.qpopAct.setEnabled(bool(applied))
         self.qpopAllAct.setEnabled(bool(applied))