* 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:
committed by
Alexandre Deckner
parent
1ef6069fe4
commit
56b050f337
@@ -451,6 +451,7 @@ DownloadProgressView::MessageReceived(BMessage* message)
|
|||||||
BEntry entry(&ref);
|
BEntry entry(&ref);
|
||||||
if (entry.GetPath(&fPath) != B_OK)
|
if (entry.GetPath(&fPath) != B_OK)
|
||||||
break;
|
break;
|
||||||
|
|
||||||
// Find out if the directory is the Trash for this
|
// Find out if the directory is the Trash for this
|
||||||
// volume
|
// volume
|
||||||
char trashPath[B_PATH_NAME_LENGTH];
|
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();
|
float value = fStatusBar->CurrentValue();
|
||||||
fStatusBar->Reset(name);
|
fStatusBar->Reset(name);
|
||||||
fStatusBar->SetTo(value);
|
fStatusBar->SetTo(value);
|
||||||
|
|||||||
Reference in New Issue
Block a user