]> dgit.raspbian.org Git - nextcloud-desktop.git/commitdiff
Always send a progress message at the end of a sync #5290
authorChristian Kamm <mail@ckamm.de>
Fri, 18 Nov 2016 11:30:41 +0000 (12:30 +0100)
committerChristian Kamm <mail@ckamm.de>
Fri, 18 Nov 2016 11:33:44 +0000 (12:33 +0100)
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.

src/libsync/syncengine.cpp

index 2c41f4429d0d18742e0f504fb93114274d716817..15f7a611a93641ae452d67491240d591172ead80 100644 (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);
 }