Bug 394615: 0 byte downloads don't appear in the download manager, patch by Edward Lee <edilee@gmail.com>, r=sdwilsh
authorgavin@gavinsharp.com
Tue, 04 Sep 2007 09:27:38 -0700
changeset 5643 c27e17df73d326496527407fe09cdc457a3ea39d
parent 5642 fdbed94914a342721cbba3bda9d76b1da93830f0
child 5644 f080e219ceb53202c3601d6e03bdd9126b16bcb6
push idunknown
push userunknown
push dateunknown
reviewerssdwilsh
bugs394615
milestone1.9a8pre
Bug 394615: 0 byte downloads don't appear in the download manager, patch by Edward Lee <edilee@gmail.com>, r=sdwilsh
toolkit/components/downloads/src/nsDownloadManager.h
--- a/toolkit/components/downloads/src/nsDownloadManager.h
+++ b/toolkit/components/downloads/src/nsDownloadManager.h
@@ -157,16 +157,17 @@ protected:
                                   const PRUnichar* aCancelMessageSingle,
                                   const PRUnichar* aDontCancelButton);
 
   PRInt32  GetRetentionBehavior();
 
   static PRBool IsInFinalStage(DownloadState aState)
   {
     return aState == nsIDownloadManager::DOWNLOAD_NOTSTARTED ||
+           aState == nsIDownloadManager::DOWNLOAD_QUEUED ||
            aState == nsIDownloadManager::DOWNLOAD_DOWNLOADING;
   }
 
   static PRBool IsInProgress(DownloadState aState) 
   {
     return aState == nsIDownloadManager::DOWNLOAD_NOTSTARTED || 
            aState == nsIDownloadManager::DOWNLOAD_QUEUED ||
            aState == nsIDownloadManager::DOWNLOAD_DOWNLOADING ||