Kiln » TortoiseHg » TortoiseHg
Clone URL:  
Pushed to one repository · View In Graph Contained in 2.0, 2.0.1, and 2.0.2

stable filelistview: select row 0 if provided file is not found

Changeset 045466db2c40

Parent b268f9b6046c

by Steve Borho

Changes to one file · Browse files at 045466db2c40 Showing diff from parent b268f9b6046c Diff from another changeset...

 
103
104
105
 
106
107
108
 
 
 
 
 
109
110
111
 
103
104
105
106
107
 
 
108
109
110
111
112
113
114
115
@@ -103,9 +103,13 @@
  self.actionSecondParent.setEnabled(False)     def selectFile(self, filename): + 'Select given file, if found, else the first file'   index = self.model().indexFromFile(filename) - self.setCurrentIndex(index) - self.fileSelected(index) + if index: + self.setCurrentIndex(index) + self.fileSelected(index) + elif self.model().count(): + self.selectRow(0)     def fileActivated(self, index, alternate=False):   selFile = self.model().fileFromIndex(index)