From bdef64b957ef3cd556c65e8791cd2a6fcc2b51df Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mart=C3=ADn=20Lucas=20Golini?= Date: Wed, 23 Sep 2026 10:57:53 -0300 Subject: [PATCH] Fix SpartanJ/ecode#961 regression. --- src/eepp/ui/models/filesystemmodel.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/eepp/ui/models/filesystemmodel.cpp b/src/eepp/ui/models/filesystemmodel.cpp index 44d7fad4e..4a9240b5f 100644 --- a/src/eepp/ui/models/filesystemmodel.cpp +++ b/src/eepp/ui/models/filesystemmodel.cpp @@ -386,6 +386,7 @@ FileSystemModel::FileSystemModel( const std::string& rootPath, const FileSystemM mThreadPool( threadPool ) { mRoot = std::make_unique( 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(); }