Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/owncloud/client.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHannah von Reth <hannah.vonreth@owncloud.com>2021-09-06 15:16:08 +0300
committerHannah von Reth <vonreth@kde.org>2021-09-06 16:44:06 +0300
commit264a2d495fa2ca26396c92657fb09c2e8dd22acf (patch)
treef08d85882e91d29ff8c6d5151e6dcaa9b0ddcc5f /src/gui/folderman.cpp
parent1b5925c327c01bbff65de4059d1153c9d6574ba9 (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.cpp5
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