From 1fa88c98206aea1c4199a586681c8c89050d36d2 Mon Sep 17 00:00:00 2001 From: Christian Kamm Date: Mon, 29 Jan 2018 09:36:35 +0100 Subject: [PATCH] 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. --- src/gui/folderstatusmodel.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/gui/folderstatusmodel.cpp b/src/gui/folderstatusmodel.cpp index 4971d5033d..d41d0ddfe3 100644 --- a/src/gui/folderstatusmodel.cpp +++ b/src/gui/folderstatusmodel.cpp @@ -1102,7 +1102,8 @@ void FolderStatusModel::slotFolderSyncStateChange(Folder *f) // update the icon etc. now 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 auto &info = _folders[folderIndex]; info.resetSubs(this, index(folderIndex));