diff options
-rw-r--r-- | chrome/browser/cocoa/download_item_mac.mm | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/chrome/browser/cocoa/download_item_mac.mm b/chrome/browser/cocoa/download_item_mac.mm index e025d06..ecf7f08 100644 --- a/chrome/browser/cocoa/download_item_mac.mm +++ b/chrome/browser/cocoa/download_item_mac.mm @@ -46,6 +46,10 @@ void DownloadItemMac::OnDownloadUpdated(DownloadItem* download) { case DownloadItem::IN_PROGRESS: case DownloadItem::CANCELLED: case DownloadItem::COMPLETE: + if (download->auto_opened()) { + [item_controller_ remove]; // We're deleted now! + return; + } [item_controller_ setStateFromDownload:download_model_.get()]; break; default: |