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

filelistview: remove redundant selectFile() method

Changeset 68df2407c72b

Parent 47e93100a75f

by Steve Borho

Changes to 3 files · Browse files at 68df2407c72b Showing diff from parent 47e93100a75f Diff from another changeset...

 
450
451
452
453
454
455
456
457
 
450
451
452
 
 
453
454
455
@@ -450,8 +450,6 @@
  self.repo.thginvalidate()   ctx = self.repo.changectx(ctx.node())   self.setContext(ctx) - if self.currentFile: - self.filelist.selectFile(self.currentFile)     def loadSettings(self, qs, prefix):   self.diffbrowse.loadSettings(qs, prefix)
 
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
 
86
87
88
 
 
 
 
 
 
 
 
 
 
 
89
90
91
@@ -86,17 +86,6 @@
  else:   self.clearDisplay.emit()   - def selectFile(self, filename): - 'Select given file, if found, else the first file' - index = self.model().indexFromFile(filename) - if index: - if index != self.currentIndex(): - self.setCurrentIndex(index) - else: - self.onRowChange(index) - elif self.model().count(): - self.selectRow(0) -   def resizeEvent(self, event):   if self.model() is not None:   vp_width = self.viewport().width()
 
277
278
279
280
281
282
283
284
285
 
277
278
279
 
280
 
281
282
283
@@ -277,9 +277,7 @@
  rev = self.ctx.rev()   if type(self.ctx.rev()) is int and len(self.repo) <= self.ctx.rev():   rev = 'tip' - f = self.filelist.currentFile()   self.onRevisionSelected(rev) - self.filelist.selectFile(f)     def navigate(self, filename=None):   self._navigate(filename, FileLogDialog, self._nav_dialogs)