Kiln » TortoiseHg » TortoiseHg
Clone URL:  
Pushed to one repository · View In Graph Contained in 1.9, 1.9.1, and 1.9.2

repowidget: rename contextmenu to singlecmenu

Changeset 2a60903c7449

Parent 37957526e274

by Steve Borho

Changes to one file · Browse files at 2a60903c7449 Showing diff from parent 37957526e274 Diff from another changeset...

 
45
46
47
48
 
49
50
51
 
728
729
730
731
 
732
733
734
 
743
744
745
746
 
747
748
749
 
775
776
777
778
 
779
780
781
 
45
46
47
 
48
49
50
51
 
728
729
730
 
731
732
733
734
 
743
744
745
 
746
747
748
749
 
775
776
777
 
778
779
780
781
@@ -45,7 +45,7 @@
  titleChanged = pyqtSignal(unicode)   """Emitted when changed the expected title for the RepoWidget tab"""   - contextmenu = None + singlecmenu = None     def __init__(self, repo, workbench):   QWidget.__init__(self, acceptDrops=True) @@ -728,7 +728,7 @@
    def singleSelectionMenu(self, point, selection):   - if not self.contextmenu: + if not self.singlecmenu:   menu = QMenu(self)   allactions = [[None, ['update', 'manifest', 'merge', 'tag',   'backout', 'email', 'archive', 'copyhash']], @@ -743,7 +743,7 @@
  for act in actions:   menu.addAction(self._actions[act])   menu.addSeparator() - self.contextmenu = menu + self.singlecmenu = menu     ctx = self.repo.changectx(self.rev)   @@ -775,7 +775,7 @@
  for action, enabled in enabled.iteritems():   self._actions[action].setEnabled(enabled)   - self.contextmenu.exec_(point) + self.singlecmenu.exec_(point)     def doubleSelectionMenu(self, point, selection):   pass