diff options
author | mkaay <mkaay@mkaay.de> | 2010-02-21 21:14:23 +0100 |
---|---|---|
committer | mkaay <mkaay@mkaay.de> | 2010-02-21 21:14:23 +0100 |
commit | ade29ef9edd2cb1d33465f3b0f073194c5dcb902 (patch) | |
tree | 708036a6ec6810870c1b2fb617aa600fef3904e4 /module/gui | |
parent | checksum now consumes less memory, fixed cookie cleaning (diff) | |
download | pyload-ade29ef9edd2cb1d33465f3b0f073194c5dcb902.tar.xz |
gui fix, better click and load support
Diffstat (limited to 'module/gui')
-rw-r--r-- | module/gui/Collector.py | 6 | ||||
-rw-r--r-- | module/gui/Queue.py | 6 |
2 files changed, 12 insertions, 0 deletions
diff --git a/module/gui/Collector.py b/module/gui/Collector.py index ebdbd372d..6ec0977d6 100644 --- a/module/gui/Collector.py +++ b/module/gui/Collector.py @@ -71,6 +71,7 @@ class PackageCollector(QObject): else: for k, pack in enumerate(ItemIterator(self.rootItem)): if pack.getPackData()["id"] == event[3]: + pack.clearAll() self.rootItem.removeChild(pack) break @@ -147,6 +148,7 @@ class PackageCollector(QObject): def clearAll(self): for k, pack in enumerate(ItemIterator(self.rootItem)): if not pack.getPackData()["id"] == "fixed": + pack.clearAll() self.rootItem.removeChild(pack) class PackageCollectorPack(QTreeWidgetItem): @@ -190,6 +192,10 @@ class PackageCollector(QObject): if item.getFileData()["id"] == cid: return item return None + + def clearAll(self): + for c in ItemIterator(self): + self.removeChild(c) class PackageCollectorFile(QTreeWidgetItem): def __init__(self, collector, pack): diff --git a/module/gui/Queue.py b/module/gui/Queue.py index 2aeb603b0..509f5a537 100644 --- a/module/gui/Queue.py +++ b/module/gui/Queue.py @@ -123,6 +123,7 @@ class Queue(QObject): else: for k, pack in enumerate(ItemIterator(self.rootItem)): if pack.getPackData()["id"] == event[3]: + pack.clearAll() self.rootItem.removeChild(pack) break @@ -220,6 +221,7 @@ class Queue(QObject): def clearAll(self): for pack in ItemIterator(self.rootItem): + pack.clearAll() self.rootItem.removeChild(pack) def getWaitingProgress(self, q): @@ -345,6 +347,10 @@ class Queue(QObject): if item.getFileData()["id"] == cid: return item return None + + def clearAll(self): + for c in ItemIterator(self): + self.removeChild(c) class QueueFile(QTreeWidgetItem): def __init__(self, queue, pack): |