diff options
author | RaNaN <Mast3rRaNaN@hotmail.de> | 2011-10-02 16:52:09 +0200 |
---|---|---|
committer | RaNaN <Mast3rRaNaN@hotmail.de> | 2011-10-02 16:52:09 +0200 |
commit | 94aef5b62739afbd6cb27db76896839426ecc282 (patch) | |
tree | 830c6b874d1e50b7bd418a1452daf6dfed6014aa /module/gui/Queue.py | |
parent | closed #365, #396, #397 (diff) | |
download | pyload-94aef5b62739afbd6cb27db76896839426ecc282.tar.xz |
GUI_progressbar_fix.patch by royflo
Diffstat (limited to 'module/gui/Queue.py')
-rw-r--r-- | module/gui/Queue.py | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/module/gui/Queue.py b/module/gui/Queue.py index 10ff9d84f..5bacab13c 100644 --- a/module/gui/Queue.py +++ b/module/gui/Queue.py @@ -195,7 +195,6 @@ class QueueModel(CollectorModel): since it's used in already locked calls, it provides an option to not lock """ - # TODO when 1 link complete wrong progress state if locked: locker = QMutexLocker(self.mutex) if isinstance(item, Link): @@ -210,8 +209,8 @@ class QueueModel(CollectorModel): perc_sum = 0 for child in item.children: try: - #if child.data["status"] == 13: #processing - # return int(child.data["progress"]) + if child.data["status"] == 0: #completed + perc_sum += 100 perc_sum += int(child.data["downloading"]["percent"]) except: pass |