Merge pull request #296 from nextcloud/upstream/issue/6337

FolderStatusModel: Refresh folders on Problem sync #6337
This commit is contained in:
Roeland Jago Douma 2018-05-17 15:37:20 +02:00 committed by GitHub
commit cbeb9af7fd
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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));