if a node entry is moved and the origin entry isn't found, an entry is created

In fact, BeIDE seems to delete the entry and move a temp entry to the right place: 
StatCacheServer was then thinking that the entry was removed


git-svn-id: file:///srv/svn/repos/haiku/buildtools/trunk@17926 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
Jérôme Duval
2006-06-26 15:22:41 +00:00
parent d018825503
commit b619e2771e

View File

@@ -1205,8 +1205,13 @@ NodeManager::_EntryMoved(BMessage *message)
// get the node
Node *node = NodeManager::GetDefault()->GetNode(nodeRef);
if (!node)
if (!node) {
// create it if not present
Entry *entry;
entry_ref newRef(nodeRef.device, newDirID, name);
NodeManager::GetDefault()->CreateEntry(newRef, &entry);
return;
}
// move it
entry_ref newRef(nodeRef.device, newDirID, name);