summaryrefslogtreecommitdiffstats
path: root/module/gui/Queue.py
diff options
context:
space:
mode:
authorGravatar mkaay <mkaay@mkaay.de> 2011-01-26 03:18:07 +0100
committerGravatar mkaay <mkaay@mkaay.de> 2011-01-26 03:18:07 +0100
commite9618b4b1c03f8ed68dc18aa12a23b47b7359c80 (patch)
tree158e88ec74e7a4f7a9f47c91ded96d34ede29e92 /module/gui/Queue.py
parentadded data storage (currently used for plugins), ev0.in rss fetcher, ul.to ma... (diff)
downloadpyload-e9618b4b1c03f8ed68dc18aa12a23b47b7359c80.tar.xz
[GUI] added nice overview
Diffstat (limited to 'module/gui/Queue.py')
-rw-r--r--module/gui/Queue.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/module/gui/Queue.py b/module/gui/Queue.py
index aa1afbd3c..4ac68ca31 100644
--- a/module/gui/Queue.py
+++ b/module/gui/Queue.py
@@ -76,7 +76,9 @@ class QueueModel(CollectorModel):
fileCount = 0
for p in self._data:
fileCount += len(p.children)
+ self.mutex.unlock()
self.emit(SIGNAL("updateCount"), packageCount, fileCount)
+ self.mutex.lock()
def update(self):
locker = QMutexLocker(self.mutex)
@@ -91,6 +93,7 @@ class QueueModel(CollectorModel):
child.data["progress"] = child.data["downloading"]["percent"]
k = pack.getChildKey(d["id"])
self.emit(SIGNAL("dataChanged(const QModelIndex &, const QModelIndex &)"), self.index(k, 0, self.index(p, 0)), self.index(k, self.cols, self.index(p, self.cols)))
+ self.updateCount()
def headerData(self, section, orientation, role=Qt.DisplayRole):
if orientation == Qt.Horizontal and role == Qt.DisplayRole: