Skip to content

Commit a13650f

Browse files
committed
filesystem clean path
1 parent ab1a93e commit a13650f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

liteidex/src/utils/filesystem/filesystemmodel.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -362,7 +362,7 @@ bool FileSystemModel::removeRootPath(const QString &path)
362362

363363
bool FileSystemModel::addRootPath(const QString &path)
364364
{
365-
QString pathName = QDir::fromNativeSeparators(path);
365+
QString pathName = QDir::fromNativeSeparators(QDir::cleanPath(path));
366366
if (m_pathList.contains(pathName)) {
367367
return false;
368368
}

0 commit comments

Comments
 (0)