Remove redundant timeout removal when creating progress dialog.
It is somehow possible for source_id to be zero, causing a g_source_remove assertion warning.
This commit is contained in:
parent
5c01b6b036
commit
fe83a92286
|
@ -98,7 +98,8 @@ class ProgressIndicator(object):
|
|||
self.dialog.show_all()
|
||||
|
||||
self._update_gui()
|
||||
GLib.source_remove(self.source_id)
|
||||
|
||||
# previous self.source_id timeout is removed when this returns False
|
||||
self.source_id = GLib.timeout_add(self.INTERVAL, self._update_gui)
|
||||
return False
|
||||
|
||||
|
|
Loading…
Reference in New Issue