FolderStatusModel: Refresh folders on Problem sync #6337

We don't want to refresh too frequently. But Problem is very close to
Success and very common.
This commit is contained in:
Christian Kamm 2018-01-29 09:36:35 +01:00 committed by Camila San
parent 5e2270bd57
commit 1fa88c9820
No known key found for this signature in database
GPG key ID: 7A4A6121E88E2AD4

View file

@ -1102,7 +1102,8 @@ void FolderStatusModel::slotFolderSyncStateChange(Folder *f)
// update the icon etc. now // update the icon etc. now
slotUpdateFolderState(f); slotUpdateFolderState(f);
if (state == SyncResult::Success && f->syncResult().folderStructureWasChanged()) { if (f->syncResult().folderStructureWasChanged()
&& (state == SyncResult::Success || state == SyncResult::Problem)) {
// There is a new or a removed folder. reset all data // There is a new or a removed folder. reset all data
auto &info = _folders[folderIndex]; auto &info = _folders[folderIndex];
info.resetSubs(this, index(folderIndex)); info.resetSubs(this, index(folderIndex));