diff options
author | Hannah von Reth <hannah.vonreth@owncloud.com> | 2021-09-06 15:16:08 +0300 |
---|---|---|
committer | Hannah von Reth <vonreth@kde.org> | 2021-09-06 16:44:06 +0300 |
commit | 264a2d495fa2ca26396c92657fb09c2e8dd22acf (patch) | |
tree | f08d85882e91d29ff8c6d5151e6dcaa9b0ddcc5f /src/gui/folderman.cpp | |
parent | 1b5925c327c01bbff65de4059d1153c9d6574ba9 (diff) |
Don't allow to enable vfs if the folder is used by multiple accounts
Diffstat (limited to 'src/gui/folderman.cpp')
-rw-r--r-- | src/gui/folderman.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/gui/folderman.cpp b/src/gui/folderman.cpp index 8de0ec6fc..e2be3531f 100644 --- a/src/gui/folderman.cpp +++ b/src/gui/folderman.cpp @@ -1493,4 +1493,9 @@ Result<void, QString> FolderMan::unsupportedConfiguration(const QString &path) c return {}; } +bool FolderMan::checkVfsAvailability(const QString &path) const +{ + return unsupportedConfiguration(path) && Vfs::checkAvailability(path); +} + } // namespace OCC |