From 78a6de9c3adac6906f0a469ddfe5f18bc9091880 Mon Sep 17 00:00:00 2001 From: Doug Kearns Date: Mon, 24 Feb 2014 16:34:00 +1100 Subject: [PATCH] Fix :downloads [Delete]. --- common/modules/downloads.jsm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/common/modules/downloads.jsm b/common/modules/downloads.jsm index 6e1c6286..3f4a3501 100644 --- a/common/modules/downloads.jsm +++ b/common/modules/downloads.jsm @@ -98,7 +98,7 @@ var Download = Class("Download", { delete: promises.task(function delete_() { if (this.hasPartialData) yield this.removePartialData(); - else if (self.targetFile.exists()) + else if (this.targetFile.exists()) this.targetFile.remove(false); this.updateStatus(); }),