This commit is contained in:
Martín Lucas Golini
2026-09-23 10:57:53 -03:00
parent 6c7cc505e6
commit bdef64b957
+2
View File
@@ -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();
}