FolderStatusModel: Do not abort applying selective sync if one folder has an error

Issue #6675
This commit is contained in:
Olivier Goffart 2018-08-01 11:10:38 +02:00 committed by Kevin Ottens
parent 732069aaa7
commit 4837bc8d60
No known key found for this signature in database
GPG key ID: 074BBBCB8DECC9E2

View file

@ -830,7 +830,7 @@ void FolderStatusModel::slotApplySelectiveSync()
auto oldBlackList = folder->journalDb()->getSelectiveSyncList(SyncJournalDb::SelectiveSyncBlackList, &ok); auto oldBlackList = folder->journalDb()->getSelectiveSyncList(SyncJournalDb::SelectiveSyncBlackList, &ok);
if (!ok) { if (!ok) {
qCWarning(lcFolderStatus) << "Could not read selective sync list from db."; qCWarning(lcFolderStatus) << "Could not read selective sync list from db.";
return; continue;
} }
QStringList blackList = createBlackList(&_folders[i], oldBlackList); QStringList blackList = createBlackList(&_folders[i], oldBlackList);
folder->journalDb()->setSelectiveSyncList(SyncJournalDb::SelectiveSyncBlackList, blackList); folder->journalDb()->setSelectiveSyncList(SyncJournalDb::SelectiveSyncBlackList, blackList);