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:
committed by
Alexandre Deckner
parent
82117cd7eb
commit
a933ccf28d
@@ -308,14 +308,18 @@ DownloadProgressView::SaveSettings(BMessage* archive)
|
|||||||
void
|
void
|
||||||
DownloadProgressView::AttachedToWindow()
|
DownloadProgressView::AttachedToWindow()
|
||||||
{
|
{
|
||||||
if (fDownload)
|
if (fDownload) {
|
||||||
fDownload->SetProgressListener(BMessenger(this));
|
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);
|
fTopButton->SetTarget(this);
|
||||||
fBottomButton->SetTarget(this);
|
fBottomButton->SetTarget(this);
|
||||||
|
|
||||||
BEntry entry(fPath.Path());
|
|
||||||
if (entry.Exists())
|
|
||||||
_StartNodeMonitor(entry);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user