diff options
author | Christian Kamm <mail@ckamm.de> | 2019-07-26 11:16:59 +0300 |
---|---|---|
committer | Kevin Ottens <kevin.ottens@nextcloud.com> | 2020-12-15 12:58:54 +0300 |
commit | a587cd3a136ae7ac2e184de8a17d1747f7df2f45 (patch) | |
tree | c633ab51ecd3c28c31b584e3a5988b3854e351b2 /src/gui/folderstatusmodel.cpp | |
parent | 5761f4cd8aeb31c2b58e1e00d6ff72caa56dd8c7 (diff) |
AccountSettings: Fetch subitems after wiping them
That helps avoid empty lists after account creation #7336
Diffstat (limited to 'src/gui/folderstatusmodel.cpp')
-rw-r--r-- | src/gui/folderstatusmodel.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
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); } } |