Kiln » TortoiseHg » TortoiseHg
Clone URL:  
Pushed to one repository · View In Graph Contained in 1.0, 1.0.1, and 1.0.2

statusbar: prevent to call gobject.source_remove() with None

Fixes #910

Changeset cc567252f4e5

Parent b0bcc8f675f9

by Yuki KODAMA

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

 
43
44
45
46
47
 
 
 
48
49
50
 
43
44
45
 
 
46
47
48
49
50
51
@@ -43,8 +43,9 @@
  self.timeout_id = gobject.timeout_add(timeout, self.pulse_timer)     def end(self, msg=None, unmap=True): - gobject.source_remove(self.timeout_id) - self.timeout_id = None + if self.timeout_id: + gobject.source_remove(self.timeout_id) + self.timeout_id = None     text = ''   if msg: