From 56b050f337f5cebf1fdd1a87047a0146c9c5a1a2 Mon Sep 17 00:00:00 2001 From: phoudoin Date: Thu, 10 Mar 2011 18:00:40 +0000 Subject: [PATCH] * Don't trust anymore provided MIME type (if any): use instead the registrar's type guessing feature, which we can (and should) trust way more. * Notify back the download objet when it's file location has changed. git-svn-id: http://svn.haiku-os.org/webpositive/webkit/trunk@577 94f232f2-1747-11df-bad5-a5bfde151594 --- src/apps/webpositive/DownloadProgressView.cpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/apps/webpositive/DownloadProgressView.cpp b/src/apps/webpositive/DownloadProgressView.cpp index 7048e1d56a..7031e429c3 100644 --- a/src/apps/webpositive/DownloadProgressView.cpp +++ b/src/apps/webpositive/DownloadProgressView.cpp @@ -451,6 +451,7 @@ DownloadProgressView::MessageReceived(BMessage* message) BEntry entry(&ref); if (entry.GetPath(&fPath) != B_OK) break; + // Find out if the directory is the Trash for this // volume char trashPath[B_PATH_NAME_LENGTH]; @@ -474,6 +475,10 @@ DownloadProgressView::MessageReceived(BMessage* message) } } + // Inform download of the new path + if (fDownload) + fDownload->HasMovedTo(fPath); + float value = fStatusBar->CurrentValue(); fStatusBar->Reset(name); fStatusBar->SetTo(value);