mirror of
https://github.com/SpartanJ/eepp.git
synced 2026-10-27 00:28:34 +03:00
Fix SpartanJ/ecode#961 regression.
This commit is contained in:
@@ -386,6 +386,7 @@ FileSystemModel::FileSystemModel( const std::string& rootPath, const FileSystemM
|
||||
mThreadPool( threadPool ) {
|
||||
mRoot = std::make_unique<Node>( mRootPath, *this, threadPool );
|
||||
mInitOK = true;
|
||||
FileSystem::dirAddSlashAtEnd( mRealRootPath );
|
||||
setupColumnNames( translator );
|
||||
invalidate();
|
||||
}
|
||||
@@ -403,6 +404,7 @@ const std::string& FileSystemModel::getRootPath() const {
|
||||
void FileSystemModel::setRootPath( const std::string& rootPath ) {
|
||||
mRootPath = rootPath;
|
||||
mRealRootPath = FileSystem::getRealPath( mRootPath );
|
||||
FileSystem::dirAddSlashAtEnd( mRealRootPath );
|
||||
update();
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user