mirror of
https://review.haiku-os.org/buildtools
synced 2026-02-04 07:53:14 +01:00
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:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user