Author: stippi Date: Sun May 23 12:56:24 2010 New Revision: 518 URL: http://mmlr.dyndns.org/changeset/518 Log: When a download starts, do not start node monitoring the path while it is still pointing to the containing folder. Fixes ticket #62. Modified: webkit/trunk/WebKit/haiku/WebPositive/DownloadProgressView.cpp Modified: webkit/trunk/WebKit/haiku/WebPositive/DownloadProgressView.cpp ============================================================================== --- webkit/trunk/WebKit/haiku/WebPositive/DownloadProgressView.cpp Sat May 22 19:04:46 2010 (r517) +++ webkit/trunk/WebKit/haiku/WebPositive/DownloadProgressView.cpp Sun May 23 12:56:24 2010 (r518) @@ -308,14 +308,18 @@ 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); }