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 locatedDirectory;
|
||||||
BString locatedName;
|
BString locatedName;
|
||||||
_SplitNormalizedPath(locatedPath, locatedDirectory, locatedName);
|
_SplitNormalizedPath(locatedPath, locatedDirectory, locatedName);
|
||||||
if (locatedName != directory->Name()
|
if (locatedName != directory->Name())
|
||||||
|| !_LocateDirectory(directory->Parent(), locatedDirectory)) {
|
return false;
|
||||||
|
|
||||||
|
if (_LocateDirectory(directory->Parent(), locatedDirectory)) {
|
||||||
directory->SetLocatedPath(locatedPath, true);
|
directory->SetLocatedPath(locatedPath, true);
|
||||||
_LocateEntries(directory, locatedPath);
|
_LocateEntries(directory, locatedPath);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user