From a587cd3a136ae7ac2e184de8a17d1747f7df2f45 Mon Sep 17 00:00:00 2001 From: Christian Kamm Date: Fri, 26 Jul 2019 10:16:59 +0200 Subject: [PATCH] AccountSettings: Fetch subitems after wiping them That helps avoid empty lists after account creation #7336 --- src/gui/folderstatusmodel.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/gui/folderstatusmodel.cpp b/src/gui/folderstatusmodel.cpp index 562363ac4..1b6b0dd06 100644 --- a/src/gui/folderstatusmodel.cpp +++ b/src/gui/folderstatusmodel.cpp @@ -1110,7 +1110,9 @@ void FolderStatusModel::slotFolderSyncStateChange(Folder *f) && (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)); + auto idx = index(folderIndex); + info.resetSubs(this, idx); + fetchMore(idx); } } -- 2.30.2