Commits

Yuya Nishihara committed e97b6b0

qreorder: own context menu action by menu itself

  • Participants
  • Parent commits 5ede2ab
  • Branches stable

Comments (0)

Files changed (1)

File tortoisehg/hgqt/qreorder.py

     def patchlistMenuRequest(self, point, selection):
         self.menuselection = selection
         menu = QMenu(self)
-        act = QAction(_('Rename patch'), self)
-        act.triggered.connect(self.qrenamePatch)
-        menu.addAction(act)
+        menu.addAction(_('Rename patch'), self.qrenamePatch)
         menu.exec_(point)
 
     def qrenamePatch(self):