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

stable annotate: verify annotation thread has reached menu line (closes #541)

Changeset c69ddedf0b25

Parent 59bb6f267b33

by Steve Borho

Changes to one file · Browse files at c69ddedf0b25 Showing diff from parent 59bb6f267b33 Diff from another changeset...

 
94
95
96
97
 
 
 
 
98
99
100
 
94
95
96
 
97
98
99
100
101
102
103
@@ -94,7 +94,10 @@
  menu = self.createStandardContextMenu()   line = self.lineAt(point)   point = self.mapToGlobal(point) - if line < 0 or not self.isAnnotationEnabled(): + + if not self.isAnnotationEnabled(): + return menu.exec_(point) + if line < 0 or line >= len(self._links):   return menu.exec_(point)     fctx, line = self._links[line]