Folder: Check etag again after active sync #4116

Maybe more things were happening on the server?
This commit is contained in:
Christian Kamm 2017-09-12 13:02:00 +02:00 committed by Markus Goetz
parent 2b7919fb3a
commit 66415831ea

View file

@ -817,6 +817,17 @@ void Folder::slotSyncFinished(bool success)
void Folder::slotEmitFinishedDelayed()
{
emit syncFinished(_syncResult);
// Immediately check the etag again if there was some sync activity.
if ((_syncResult.status() == SyncResult::Success
|| _syncResult.status() == SyncResult::Problem)
&& (_syncResult.firstItemDeleted()
|| _syncResult.firstItemNew()
|| _syncResult.firstItemRenamed()
|| _syncResult.firstItemUpdated()
|| _syncResult.firstNewConflictItem())) {
slotRunEtagJob();
}
}
// the progress comes without a folder and the valid path set. Add that here