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: do not persist currentIndex if it is -1

Changeset 008dc074d269

Parent b991177d05ae

by Steve Borho

Changes to one file · Browse files at 008dc074d269 Showing diff from parent b991177d05ae Diff from another changeset...

 
84
85
86
87
 
88
89
90
 
84
85
86
 
87
88
89
90
@@ -84,7 +84,7 @@
  def layoutChanged(self):   'file model has new contents'   index = self.currentIndex() - if index.row() >= len(self.model()): + if index.row() >= len(self.model()) or index.row() == -1:   self.selectRow(0)   else:   self.selectRow(index.row())