From b1a835d13bce6ca060bdbc678589768a1a3a26f5 Mon Sep 17 00:00:00 2001 From: Ingo Weinhold Date: Tue, 21 Jul 2009 01:49:17 +0000 Subject: [PATCH] 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 --- src/apps/debugger/files/FileManager.cpp | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/src/apps/debugger/files/FileManager.cpp b/src/apps/debugger/files/FileManager.cpp index fca9fb201a..cae6d5564f 100644 --- a/src/apps/debugger/files/FileManager.cpp +++ b/src/apps/debugger/files/FileManager.cpp @@ -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); } - } + } } }