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:
Stephan Aßmus
2008-08-06 20:22:50 +00:00
parent 1708513ca8
commit a5b8a7dfc9
+6 -1
View File
@@ -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);