diff options
author | Christian Kamm <mail@ckamm.de> | 2019-07-26 11:16:59 +0300 |
---|---|---|
committer | Christian Kamm <mail@ckamm.de> | 2019-08-01 13:11:08 +0300 |
commit | 97ce20ac028660e6ae3dd0b98d4b487999d8768a (patch) | |
tree | 5c4a5bfaaa9072f11c48fe2dcd55781dc7832732 /src/gui/folderstatusmodel.cpp | |
parent | 08f58ff30409981943bba06266860f49fe1aebf5 (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 bc69d2c03..f2af92eed 100644 --- a/src/gui/folderstatusmodel.cpp +++ b/src/gui/folderstatusmodel.cpp @@ -1097,7 +1097,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); } } |