locate to the new directory after creation

Signed-off-by: Le Tan <tamlokveer@gmail.com>
This commit is contained in:
Le Tan 2017-01-21 09:43:48 +08:00
parent fb1a172acf
commit bc9ed31db6

View File

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