Commits

Angel Ezquerra committed db7c4cf

repowidget: add separators to the pair and multiple selection context menus

These make these menus match the style of the single revision context menu.

  • Participants
  • Parent commits 2346bb5
  • Branches stable

Comments (0)

Files changed (1)

tortoisehg/hgqt/repowidget.py

             menu.addAction(a)
 
         if 'transplant' in self.repo.extensions():
+            menu.addSeparator()
             a = QAction(_('Transplant Selected to local'), self)
             a.setIcon(qtlib.getmenuicon('hg-transplant'))
             a.triggered.connect(self.transplantRevisions)
             menu.addAction(a)
 
         if 'reviewboard' in self.repo.extensions():
+            menu.addSeparator()
             a = QAction(_('Post Selected to Review Board...'), self)
             a.triggered.connect(self.sendToReviewBoard)
             menu.addAction(a)
                 (_('Export Selected...'), exportSel, 'hg-export'),
                 (_('Email Selected...'), emailSel, 'mail-forward'),
                 ):
+            if name is None:
+                menu.addSeparator()
+                continue
             a = QAction(name, self)
             if icon:
                 a.setIcon(qtlib.getmenuicon(icon))
             menu.addAction(a)
 
         if 'transplant' in self.repo.extensions():
+            menu.addSeparator()
             a = QAction(_('Transplant Selected to local'), self)
             a.setIcon(qtlib.getmenuicon('hg-transplant'))
             a.triggered.connect(self.transplantRevisions)