188 |
188 |
189 PRInt64 alertIntervalUSec = alertInterval * PR_USEC_PER_MSEC; |
189 PRInt64 alertIntervalUSec = alertInterval * PR_USEC_PER_MSEC; |
190 PRInt64 goat = PR_Now() - mStartTime; |
190 PRInt64 goat = PR_Now() - mStartTime; |
191 showTaskbarAlert = goat > alertIntervalUSec; |
191 showTaskbarAlert = goat > alertIntervalUSec; |
192 |
192 |
193 @@ -2237,17 +2250,17 @@ nsDownload::SetState(DownloadState aStat |
193 @@ -2236,18 +2249,19 @@ nsDownload::SetState(DownloadState aStat |
|
194 // If downloads are automatically removed per the user's |
194 // retention policy, there's no reason to make the text clickable |
195 // retention policy, there's no reason to make the text clickable |
195 // because if it is, they'll click open the download manager and |
196 // because if it is, they'll click open the download manager and |
196 // the items they downloaded will have been removed. |
197 // the items they downloaded will have been removed. |
197 alerts->ShowAlertNotification( |
198 alerts->ShowAlertNotification( |
198 NS_LITERAL_STRING(DOWNLOAD_MANAGER_ALERT_ICON), title, |
199 NS_LITERAL_STRING(DOWNLOAD_MANAGER_ALERT_ICON), title, |
199 message, !removeWhenDone, EmptyString(), mDownloadManager, |
200 message, !removeWhenDone, EmptyString(), mDownloadManager, |
200 EmptyString()); |
201 EmptyString()); |
201 } |
202 - } |
202 - } |
203 + } |
|
204 } |
203 + } // end non-KDE block |
205 + } // end non-KDE block |
204 } |
206 } |
205 |
207 |
206 #if (defined(XP_WIN) && !defined(WINCE)) || defined(XP_MACOSX) || defined(ANDROID) |
208 #if (defined(XP_WIN) && !defined(WINCE)) || defined(XP_MACOSX) || defined(ANDROID) |
207 nsCOMPtr<nsIFileURL> fileURL = do_QueryInterface(mTarget); |
209 nsCOMPtr<nsIFileURL> fileURL = do_QueryInterface(mTarget); |