Progress UI: Properly reset bar after a sync.

This commit is contained in:
Christian Kamm 2015-07-03 11:26:03 +02:00
parent 9ad79cfc52
commit 030d1e636b

View File

@ -704,7 +704,10 @@ void FolderStatusModel::slotFolderSyncStateChange()
if (folderIndex < 0) { return; }
SyncResult::Status state = f->syncResult().status();
if (state == SyncResult::SyncPrepare) {
if (state == SyncResult::SyncPrepare
|| state == SyncResult::Problem
|| state == SyncResult::Success) {
// Reset the progress info before and after a sync.
_folders[folderIndex]._progress = SubFolderInfo::Progress();
} else if (state == SyncResult::Error) {
_folders[folderIndex]._progress._progressString = f->syncResult().errorString();