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());