From 3dfba6bf79a5f77d07d567bf23eb821dbb881b12 Mon Sep 17 00:00:00 2001 From: xjzsq Date: Sun, 15 Dec 2024 02:07:12 +0800 Subject: [PATCH] Fix a bug preventing sync root in folder on drive roots Fixes: Signed-off-by: xjzsq --- src/common/vfs.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/common/vfs.cpp b/src/common/vfs.cpp index 69e51be50944c..4f22bfedb0dec 100644 --- a/src/common/vfs.cpp +++ b/src/common/vfs.cpp @@ -71,7 +71,7 @@ Result Vfs::checkAvailability(const QString &path, Vfs::Mode mode #ifdef Q_OS_WIN if (mode == Mode::WindowsCfApi) { const auto info = QFileInfo(path); - if (QDir(info.canonicalPath()).isRoot()) { + if (QDir(info.canonicalFilePath()).isRoot()) { return tr("The Virtual filesystem feature does not support a drive as sync root"); } const auto fs = FileSystem::fileSystemForPath(info.absoluteFilePath());