diff --git a/ChangeLog b/ChangeLog index 01bb389..459c414 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2009-04-19 Thomas Vander Stichele + + * morituri/common/task.py: + Make sure we also show progress when it's 0%, at the start. + 2009-04-19 Thomas Vander Stichele * morituri/image/cue.py: diff --git a/morituri/common/task.py b/morituri/common/task.py index 2bcb38c..fd2ac6d 100644 --- a/morituri/common/task.py +++ b/morituri/common/task.py @@ -76,7 +76,7 @@ class Task(object): Notify about progress changes bigger than the increment. Called by subclass implementations as the task progresses. """ - if value - self.progress > self.increment or value >= 1.0: + if value - self.progress > self.increment or value >= 1.0 or value == 0.0: self.progress = value self._notifyListeners('progressed', value) self.debug('notifying progress', value)