AccountSettings: Fetch subitems after wiping them

That helps avoid empty lists after account creation #7336
This commit is contained in:
Christian Kamm 2019-07-26 10:16:59 +02:00 committed by Kevin Ottens
parent 5761f4cd8a
commit a587cd3a13
No known key found for this signature in database
GPG key ID: 074BBBCB8DECC9E2

View file

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