Commits

Johan Samyn  committed 7628b20

revdetails: do not show context menu if no file selected

this is necessary to avoid the bug report dialog being shown

  • Participants
  • Parent commits 36d1d1a
  • Branches stable

Comments (0)

Files changed (1)

File tortoisehg/hgqt/revdetails.py

             else:
                 self.filecontextmenu = contextmenu
 
-        if len(self.filelist.getSelectedFiles()) > 1 and not itemissubrepo:
+        ln = len(self.filelist.getSelectedFiles())
+        if ln == 0:
+            return
+        if ln > 1 and not itemissubrepo:
             singlefileactions = False
         else:
             singlefileactions = True