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:
authorChristian Kamm <mail@ckamm.de>2018-12-18 12:47:45 +0300
committerckamm <mail@ckamm.de>2018-12-18 17:16:40 +0300
commit0b35d901eb46f1c7986fac7e9484136ca9ab0e3c (patch)
treed6f2e764e3a639d7d3ab107b2f8feab18867d20d /src/gui/folder.h
parentd7020f77f74ebd024c5b1d7ba68426d9913b9ce7 (diff)
Vfs: Ensure older versions gracefully ignore winvfs folders
Previously there'd likely be a mess if a 2.6 winvfs folder was attempted to be used with a 2.5 client. Now the older clients will ignore these folders.
Diffstat (limited to 'src/gui/folder.h')
-rw-r--r--src/gui/folder.h10
1 files changed, 8 insertions, 2 deletions
diff --git a/src/gui/folder.h b/src/gui/folder.h
index e69cadcdd..85af7c005 100644
--- a/src/gui/folder.h
+++ b/src/gui/folder.h
@@ -84,8 +84,14 @@ public:
static bool load(QSettings &settings, const QString &alias,
FolderDefinition *folder);
- /// The highest version in the settings that load() can read
- static int maxSettingsVersion() { return 2; }
+ /** The highest version in the settings that load() can read
+ *
+ * Version 1: initial version (default if value absent in settings)
+ * Version 2: introduction of metadata_parent hash in 2.6.0
+ * (version remains readable by 2.5.1)
+ * Version 3: introduction of new windows vfs mode in 2.6.0
+ */
+ static int maxSettingsVersion() { return 3; }
/// Ensure / as separator and trailing /.
static QString prepareLocalPath(const QString &path);