diff options
author | Hannah von Reth <hannah.vonreth@owncloud.com> | 2021-07-29 17:29:13 +0300 |
---|---|---|
committer | Hannah von Reth <vonreth@kde.org> | 2021-08-10 15:19:56 +0300 |
commit | 975b0f2c23daea9fbb1532b0a7a2e95e86b67e08 (patch) | |
tree | c58000fc8b12d5863cb5cb55969d465fcd3cd803 /src/gui/folderman.h | |
parent | d26c0540416c142aa8b63d45d129af6bb104820e (diff) |
Prevent using a sync folder for multiple accounts
Fixes: #8849
Diffstat (limited to 'src/gui/folderman.h')
-rw-r--r-- | src/gui/folderman.h | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/src/gui/folderman.h b/src/gui/folderman.h index b87e7e866..d3851dc6d 100644 --- a/src/gui/folderman.h +++ b/src/gui/folderman.h @@ -171,11 +171,9 @@ public: * Check if @a path is a valid path for a new folder considering the already sync'ed items. * Make sure that this folder, or any subfolder is not sync'ed already. * - * Note that different accounts are allowed to sync to the same folder. - * * @returns an empty string if it is allowed, or an error if it is not allowed */ - QString checkPathValidityForNewFolder(const QString &path, const QUrl &serverUrl = QUrl()) const; + QString checkPathValidityForNewFolder(const QString &path) const; /** * Attempts to find a non-existing, acceptable path for creating a new sync folder. @@ -186,7 +184,7 @@ public: * subfolder of ~ would be a good candidate. When that happens \a basePath * is returned. */ - QString findGoodPathForNewSyncFolder(const QString &basePath, const QUrl &serverUrl) const; + QString findGoodPathForNewSyncFolder(const QString &basePath) const; /** * While ignoring hidden files can theoretically be switched per folder, |