From e9618b4b1c03f8ed68dc18aa12a23b47b7359c80 Mon Sep 17 00:00:00 2001 From: mkaay Date: Wed, 26 Jan 2011 03:18:07 +0100 Subject: [GUI] added nice overview --- module/gui/Queue.py | 3 +++ 1 file changed, 3 insertions(+) (limited to 'module/gui/Queue.py') 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: -- cgit v1.2.3