Kiln » TortoiseHg » TortoiseHg
Clone URL:  
Pushed to one repository · View In Graph Contained in 2.1, 2.1.1, and 2.1.2

revdetails: Disable some context menu actions when multiple files selected

Changeset 91fa7751c2d0

Parent ea305decebda

by patrice.lacouture@gmail.com

Changes to one file · Browse files at 91fa7751c2d0 Showing diff from parent ea305decebda Diff from another changeset...

 
415
416
417
 
 
 
 
 
 
 
418
419
420
 
415
416
417
418
419
420
421
422
423
424
425
426
427
@@ -415,6 +415,13 @@
  else:   self.filecontextmenu = contextmenu   + if len(self.filelist.getSelectedFiles()) > 1 and not itemissubrepo: + singlefileactions = False + else: + singlefileactions = True + self._actions['navigate'].setEnabled(singlefileactions) + self._actions['diffnavigate'].setEnabled(singlefileactions) +   if actionlist:   contextmenu.exec_(self.filelist.mapToGlobal(point))