From 94b98ea66b328317a9ed1f151a9fbb081627ee2d Mon Sep 17 00:00:00 2001 From: "sdwilsh%shawnwilsher.com" Date: Fri, 1 Jun 2007 01:42:43 +0000 Subject: [PATCH] Bug 381803 - two files are listed in DM, while downloading one file. r=mconnor --- toolkit/mozapps/downloads/content/downloads.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/toolkit/mozapps/downloads/content/downloads.js b/toolkit/mozapps/downloads/content/downloads.js index c3af4c1071c..5dd39221b9d 100644 --- a/toolkit/mozapps/downloads/content/downloads.js +++ b/toolkit/mozapps/downloads/content/downloads.js @@ -207,6 +207,8 @@ var gDownloadObserver = { case "dl-start": // Add this download to the percentage average tally var dl = aSubject.QueryInterface(Components.interfaces.nsIDownload); + if (getDownload(dl.id)) + return; gActiveDownloads.push(dl); // Adding to the UI