From: Markus Goetz Date: Wed, 16 Nov 2016 13:08:05 +0000 (+0100) Subject: Folder: Add comments after discussion about pre-selected selective sync X-Git-Tag: archive/raspbian/3.16.7-1_deb13u1+rpi1~1^2~1013 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=89f55cf9dfa51a86ce6dbc85959cea4f44cff1d0;p=nextcloud-desktop.git Folder: Add comments after discussion about pre-selected selective sync --- diff --git a/src/gui/folderman.cpp b/src/gui/folderman.cpp index 4eea985a0..7968fcbb3 100644 --- a/src/gui/folderman.cpp +++ b/src/gui/folderman.cpp @@ -338,6 +338,7 @@ QString FolderMan::unescapeAlias( const QString& alias ) // filename is the name of the file only, it does not include // the configuration directory path +// WARNING: Do not remove this code, it is used for predefined/automated deployments (2016) Folder* FolderMan::setupFolderFromOldConfigFile(const QString &file, AccountState *accountState ) { Folder *folder = 0; @@ -408,6 +409,8 @@ Folder* FolderMan::setupFolderFromOldConfigFile(const QString &file, AccountStat //migrate settings folder->journalDb()->setSelectiveSyncList(SyncJournalDb::SelectiveSyncBlackList, blackList); settings.remove(QLatin1String("blackList")); + // FIXME: If you remove this codepath, you need to provide another way to do + // this via theme.h or the normal FolderMan::setupFolders } folder->saveToSettings();