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

stable qreorder: avoid traceback if no patch in queue and doing a right-click

Changeset e724702efd06

Parent a26b9e7388d6

by Johan Samyn

Changes to one file · Browse files at e724702efd06 Showing diff from parent a26b9e7388d6 Diff from another changeset...

 
56
57
58
59
60
 
 
 
61
62
63
 
56
57
58
 
 
59
60
61
62
63
64
@@ -56,8 +56,9 @@
  QListWidget.__init__(self, parent)   self.setCurrentRow(0)   def contextMenuEvent(self, event): - self.menuRequested.emit(event.globalPos(), - self.item(self.currentRow()).patchname) + i = self.item(self.currentRow()) + if i: + self.menuRequested.emit(event.globalPos(), i.patchname)   def focusInEvent(self, e):   i = self.item(self.currentRow())   if i: