Handle removed files.
* On Haiku, this will make them disappear from the results list. * On BeOS, it will only work around the problem that we don't know which file was removed from the node monitoring message... git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@26848 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
@@ -188,8 +188,13 @@ Grepper::_GrepperThread()
|
||||
message.MakeEmpty();
|
||||
message.what = MSG_REPORT_RESULT;
|
||||
message.AddString("filename", fileName);
|
||||
|
||||
|
||||
BEntry entry(fileName);
|
||||
if (!entry.Exists()) {
|
||||
if (fIterator->NotifyNegatives())
|
||||
fTarget.SendMessage(&message);
|
||||
continue;
|
||||
}
|
||||
entry_ref ref;
|
||||
entry.GetRef(&ref);
|
||||
message.AddRef("ref", &ref);
|
||||
|
||||
Reference in New Issue
Block a user