From: Christian Kamm Date: Fri, 26 Jul 2019 08:16:59 +0000 (+0200) Subject: AccountSettings: Fetch subitems after wiping them X-Git-Tag: archive/raspbian/3.16.7-1_deb13u1+rpi1~1^2~12^2~21^2~468^2~211 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=a587cd3a136ae7ac2e184de8a17d1747f7df2f45;p=nextcloud-desktop.git AccountSettings: Fetch subitems after wiping them That helps avoid empty lists after account creation #7336 --- 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); } }