Folder: update the folder version
authorOlivier Goffart <ogoffart@woboq.com>
Wed, 31 Oct 2018 15:34:23 +0000 (16:34 +0100)
committerKevin Ottens <kevin.ottens@nextcloud.com>
Tue, 15 Dec 2020 09:58:15 +0000 (10:58 +0100)
Since the new index would crash old version of the client, we need to
upgrade folder version so they do not load in the client 2.5.0

src/gui/folder.h

index 39baa989efb7eee438f30f00dd262d108fb9d7ee..8d4ab1915e10d59926343b11800c35f391141c03 100644 (file)
@@ -71,7 +71,7 @@ public:
         FolderDefinition *folder);
 
     /// The highest version in the settings that load() can read
-    static int maxSettingsVersion() { return 1; }
+    static int maxSettingsVersion() { return 2; }
 
     /// Ensure / as separator and trailing /.
     static QString prepareLocalPath(const QString &path);