Always send a progress message at the end of a sync #5290

Some listeners detect whether a sync is finished by checking
for isUpdatingEstimates and completedFiles >= totalFiles. But
if a sync didn't transfer any files we never sent signal
with these values. Now we do.
This commit is contained in:
Christian Kamm 2016-11-18 12:30:41 +01:00
parent 6451eb3ade
commit e485c5c008

View file

@ -1070,6 +1070,11 @@ void SyncEngine::slotFinished(bool success)
}
_journal->commit("All Finished.", false);
// Send final progress information even if no
// files needed propagation
emit transmissionProgress(*_progressInfo);
emit treeWalkResult(_syncedItems);
finalize(success);
}