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

repowidget: do not open a menu if no revisions are selected

Changeset a2bf64a256ef

Parent b00b6ee1b100

by Steve Borho

Changes to one file · Browse files at a2bf64a256ef Showing diff from parent b00b6ee1b100 Diff from another changeset...

 
686
687
688
689
690
691
692
 
 
 
 
 
 
693
694
695
 
686
687
688
 
 
 
 
689
690
691
692
693
694
695
696
697
@@ -686,10 +686,12 @@
    def viewMenuRequest(self, point, selection):   'User requested a context menu in repo view widget' - # TODO: selection is ignored at the moment - # It is a list of the currently selected revisions. Integers - # for changelog revisions, None for the working copy, or strings - # for unapplied patches. + if len(selection) == 0: + return + + # selection is a list of the currently selected revisions. + # Integers for changelog revisions, None for the working copy, + # or strings for unapplied patches.   menu = QMenu(self)     allactions = [['all', ['update', 'manifest', 'merge', 'tag',