Kiln » TortoiseHg » TortoiseHg
Clone URL:  
Pushed to one repository · View In Graph Contained in 1.9, 1.9.1, and 1.9.2

hgignore: prevent IndexError when there's no item in list

Changeset 0e6b5bb10d60

Parent 3ccdc605e87d

by Yuki KODAMA

Changes to one file · Browse files at 0e6b5bb10d60 Showing diff from parent 3ccdc605e87d Diff from another changeset...

 
146
147
148
149
 
 
 
 
150
151
152
 
146
147
148
 
149
150
151
152
153
154
155
@@ -146,7 +146,10 @@
  self.writeIgnoreFile()   self.refresh()   point = self.unknownlist.mapToGlobal(point) - local = self.lclunknowns[self.unknownlist.currentRow()] + row = self.unknownlist.currentRow() + if row < 0: + return + local = self.lclunknowns[row]   menu = QMenu(self)   menu.setTitle(_('Add ignore filter...'))   filters = [local]