diff --git a/src/common/vfs.cpp b/src/common/vfs.cpp index 1d0b6d23da..2e84fb2fb9 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("Please choose a different location. %1 is a drive. It doesn't support virtual files.").arg(path); } if (const auto fileSystemForPath = FileSystem::fileSystemForPath(info.absoluteFilePath());