Folder: Add comments after discussion about pre-selected selective sync
authorMarkus Goetz <markus@woboq.com>
Wed, 16 Nov 2016 13:08:05 +0000 (14:08 +0100)
committerMarkus Goetz <markus@woboq.com>
Wed, 16 Nov 2016 13:08:05 +0000 (14:08 +0100)
src/gui/folderman.cpp

index 4eea985a0014bbb9ae30115a9566317921406770..7968fcbb3e1931f60655461aae7c725a5bbe22d9 100644 (file)
@@ -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();