When a download starts, do not start node monitoring the path while it is still

pointing to the containing folder. Fixes ticket #62.

git-svn-id: http://svn.haiku-os.org/webpositive/webkit/trunk@518 94f232f2-1747-11df-bad5-a5bfde151594
This commit is contained in:
stippi 2010-05-23 12:56:24 +00:00 committed by Alexandre Deckner
parent 82117cd7eb
commit a933ccf28d
1 changed files with 9 additions and 5 deletions

View File

@ -308,14 +308,18 @@ DownloadProgressView::SaveSettings(BMessage* archive)
void
DownloadProgressView::AttachedToWindow()
{
if (fDownload)
if (fDownload) {
fDownload->SetProgressListener(BMessenger(this));
// Will start node monitor upon receiving the B_DOWNLOAD_STARTED
// message.
} else {
BEntry entry(fPath.Path());
if (entry.Exists())
_StartNodeMonitor(entry);
}
fTopButton->SetTarget(this);
fBottomButton->SetTarget(this);
BEntry entry(fPath.Path());
if (entry.Exists())
_StartNodeMonitor(entry);
}