Pārlūkot izejas kodu

locate to the new directory after creation

Signed-off-by: Le Tan <[email protected]>
Le Tan 8 gadi atpakaļ
vecāks
revīzija
bc9ed31db6
1 mainītis faili ar 2 papildinājumiem un 0 dzēšanām
  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);