Commits

Yuya Nishihara committed 61b9fb2

mqdock: add delete and guard actions to context menu

This menu will have all MQ-related actions defined in RepoWidget.

Comments (0)

Files changed (1)

tortoisehg/hgqt/mq.py

             geticon('hg-qpush'), _('Push', 'MQ QPush'), self)
         a.setToolTip(_('Apply one patch'))
         self.setGuardsAct = a = QAction(
-            geticon('hg-qguard'), _('Guards'), self)
+            geticon('hg-qguard'), _('Set &Guards...'), self)
         a.setToolTip(_('Configure guards for selected patch'))
         self.qdeleteAct = a = QAction(
-            geticon('hg-qdelete'), _('Delete'), self)
+            geticon('hg-qdelete'), _('&Delete Patches...'), self)
         a.setToolTip(_('Delete selected patches'))
         self.qpopAct = a = QAction(
             geticon('hg-qpop'), _('Pop'), self)
     @pyqtSlot(QPoint)
     def onMenuRequested(self, pos):
         menu = QMenu(self)
+        menu.addAction(self.qdeleteAct)
         menu.addAction(self.qrenameAct)
+        menu.addAction(self.setGuardsAct)
         menu.exec_(self.queueListWidget.viewport().mapToGlobal(pos))
         menu.setParent(None)