diff options
author | Hannah von Reth <hannah.vonreth@owncloud.com> | 2021-06-17 12:28:58 +0300 |
---|---|---|
committer | Hannah von Reth <vonreth@kde.org> | 2021-06-22 14:13:32 +0300 |
commit | e78ce41e46ad8a005bee5b818870a14f262bb8b6 (patch) | |
tree | 7927c50e4c55cdda0acf774dae8d6ef35fb5bfd8 /src/common | |
parent | 24452a59823ccd13de10411668da9c39e946998a (diff) |
Fix a bug preventing sync root in folder on drive roots
Fixes: https://github.com/owncloud/enterprise/issues/4639
Diffstat (limited to 'src/common')
-rw-r--r-- | src/common/vfs.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/common/vfs.cpp b/src/common/vfs.cpp index b17417ad5..42de8b4ac 100644 --- a/src/common/vfs.cpp +++ b/src/common/vfs.cpp @@ -69,7 +69,7 @@ Result<bool, QString> Vfs::checkAvailability(const QString &path) #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()); |