summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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):