Domain::_LocateDirectory(): Fixed incorrect check. If the directory's name
doesn't match, we don't locate it implicitly. git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@31664 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
@@ -203,8 +203,10 @@ private:
|
||||
BString locatedDirectory;
|
||||
BString locatedName;
|
||||
_SplitNormalizedPath(locatedPath, locatedDirectory, locatedName);
|
||||
if (locatedName != directory->Name()
|
||||
|| !_LocateDirectory(directory->Parent(), locatedDirectory)) {
|
||||
if (locatedName != directory->Name())
|
||||
return false;
|
||||
|
||||
if (_LocateDirectory(directory->Parent(), locatedDirectory)) {
|
||||
directory->SetLocatedPath(locatedPath, true);
|
||||
_LocateEntries(directory, locatedPath);
|
||||
}
|
||||
@@ -277,7 +279,7 @@ private:
|
||||
if (subDir->GetLocatedPath(locatedEntryPath))
|
||||
_LocateEntries(subDir, locatedEntryPath);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user