소스 검색

locate to the new directory after creation

Signed-off-by: Le Tan <[email protected]>
Le Tan 8 년 전
부모
커밋
bc9ed31db6
1개의 변경된 파일2개의 추가작업 그리고 0개의 파일을 삭제
  1. 2 0
      src/vdirectorytree.cpp

+ 2 - 0
src/vdirectorytree.cpp

@@ -315,6 +315,7 @@ void VDirectoryTree::newSubDirectory()
                 return;
             }
             updateItemChildren(curItem);
+            locateDirectory(subDir);
         }
         break;
     } while (true);
@@ -346,6 +347,7 @@ void VDirectoryTree::newRootDirectory()
                 return;
             }
             updateItemChildren(NULL);
+            locateDirectory(subDir);
         }
         break;
     } while (true);