* 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
This commit is contained in:
phoudoin 2011-03-10 18:00:40 +00:00 committed by Alexandre Deckner
parent 1ef6069fe4
commit 56b050f337

View File

@ -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);