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

revdetails: always show selected file in navigate dialog

With multiple file selection, it's possible to have a DESELECTED current
item! Opening navigate dialog for the current item is confusing because other
actions operate on the selected items regardless the current item. This patch
aligns the File History and Compare file revisions actions with the other
menu entries behaviour.

Changeset 5a8c15e64db4

Parent fd7e00549669

by patrice.lacouture@gmail.com

Changes to one file · Browse files at 5a8c15e64db4 Showing diff from parent fd7e00549669 Diff from another changeset...

 
342
343
344
345
 
346
347
348
 
342
343
344
 
345
346
347
348
@@ -342,7 +342,7 @@
    def _navigate(self, filename, dlgclass, dlgdict):   if not filename: - filename = self.filelist.currentFile() + filename = self.filelist.getSelectedFiles()[0]   if filename is not None and len(self.repo.file(filename))>0:   if filename not in dlgdict:   dlg = dlgclass(self.repo, filename,