OSDN Git Service

BUG: [ 1247700 ] Cannot browse to parent folders of selected folders
authorKimmo Varis <kimmov@gmail.com>
Thu, 4 Aug 2005 18:23:51 +0000 (18:23 +0000)
committerKimmo Varis <kimmov@gmail.com>
Thu, 4 Aug 2005 18:23:51 +0000 (18:23 +0000)
 - Fix from Jochen

Src/DirDoc.cpp
Src/readme.txt

index 8fae541..d0a808c 100644 (file)
@@ -221,8 +221,11 @@ CDirDoc::AllowUpwardDirectory::ReturnCode CDirDoc::AllowUpwardDirectory()
 {
        return
        (
-               GetLeftBasePath().GetLength() > m_cchLeftRoot
-       ?       AllowUpwardDirectory::ParentIsRegularPath
+        GetLeftBasePath().GetLength() > m_cchLeftRoot
+    ||  m_pTempPathContext == NULL
+       &&  lstrcmpi(PathFindFileName(GetLeftBasePath()), 
+               PathFindFileName(GetRightBasePath())) == 0
+    ?   AllowUpwardDirectory::ParentIsRegularPath
        :       m_pTempPathContext && m_pTempPathContext->m_pParent
        ?       AllowUpwardDirectory::ParentIsTempPath
        :       AllowUpwardDirectory::No
index 44a4755..33c6ad3 100644 (file)
@@ -1,3 +1,8 @@
+2005-08-04 Kimmo
+ BUG: [ 1247700 ] Cannot browse to parent folders of selected folders
+  Fix from Jochen
+  Src: DirDoc.cpp
+
 2005-07-31 Perry
  PATCH: [ 1248180 ] fix moved block code
  BUG: [ 1248172 ] Assert failure in CDiffWrapper::RunFileDiff