summaryrefslogtreecommitdiffstats
path: root/module
diff options
context:
space:
mode:
authorGravatar mkaay <mkaay@mkaay.de> 2010-01-21 19:39:27 +0100
committerGravatar mkaay <mkaay@mkaay.de> 2010-01-21 19:39:27 +0100
commitbdb3deb371bbbcb5452e97ee560b793834d1a3f3 (patch)
tree4f958f3dad2d8a39832577cd1ff1608856e878fc /module
parentqueue page fully functional, some fixes (diff)
downloadpyload-bdb3deb371bbbcb5452e97ee560b793834d1a3f3.tar.xz
fixed link deletion
Diffstat (limited to 'module')
-rw-r--r--module/file_list.py2
-rw-r--r--module/gui/Queue.py3
2 files changed, 2 insertions, 3 deletions
diff --git a/module/file_list.py b/module/file_list.py
index 2a7ecb191..bbea40e23 100644
--- a/module/file_list.py
+++ b/module/file_list.py
@@ -326,7 +326,7 @@ class File_List(object):
key, n, pyfile, pypack, pid = packager._getFileFromID(id)
pyfile.plugin.req.abort = True
sleep(0.1)
- del pypack.files[n]
+ packager.removeFileFromPackage(id, pid)
if not pypack.files:
packager.removePackage(pid)
finally:
diff --git a/module/gui/Queue.py b/module/gui/Queue.py
index be2170309..8681d3bb1 100644
--- a/module/gui/Queue.py
+++ b/module/gui/Queue.py
@@ -298,9 +298,8 @@ class Queue(QObject):
return
remove.sort()
remove.reverse()
- parent = self
for k in remove:
- parent.takeChild(k)
+ self.takeChild(k)
class QueueFile(QTreeWidgetItem):
def __init__(self, queue, pack):