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

cmdui: prevent AttributeError if self.thread is None

Changeset bb9ff1431552

Parent a2d59ae8d0ac

by Yuki KODAMA

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

 
99
100
101
102
103
 
 
 
104
105
106
 
99
100
101
 
 
102
103
104
105
106
107
@@ -99,8 +99,9 @@
    def cancel(self):   '''Cancel running Mercurial command''' - self.thread.abort() - self.commandCanceling.emit() + if self.thread: + self.thread.abort() + self.commandCanceling.emit()     def set_pmon(self, pmon):   self.pmon = pmon