summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--module/file_list.py12
1 files changed, 5 insertions, 7 deletions
diff --git a/module/file_list.py b/module/file_list.py
index 3a4e531d7..303c49a80 100644
--- a/module/file_list.py
+++ b/module/file_list.py
@@ -57,13 +57,11 @@ class File_List(object):
def remove(self, pyfile):
- pass
-
- #if pyfile in self.files:
- #self.files.remove(pyfile)
-#
- #self.data['order'].remove(pyfile.id)
- #del self.data[pyfile.id]
+ if pyfile in self.files:
+ self.files.remove(pyfile)
+
+ self.data['order'].remove(pyfile.id)
+ del self.data[pyfile.id]
def remove_id(self, pyid):
#also abort download