Skip to content

Commit

Permalink
Fix a bug preventing sync root in folder on drive roots
Browse files Browse the repository at this point in the history
Fixes: <#7658>

Signed-off-by: xjzsq <[email protected]>
  • Loading branch information
xjzsq authored and camilasan committed Dec 16, 2024
1 parent 389983d commit dfd8751
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/common/vfs.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ Result<void, QString> 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());
Expand Down

0 comments on commit dfd8751

Please sign in to comment.