]> dgit.raspbian.org Git - nextcloud-desktop.git/commitdiff
Progress: Reset lastCompletedItem #5256
authorChristian Kamm <mail@ckamm.de>
Tue, 18 Oct 2016 10:29:52 +0000 (12:29 +0200)
committerChristian Kamm <mail@ckamm.de>
Tue, 18 Oct 2016 10:29:52 +0000 (12:29 +0200)
Otherwise progress listeners think it's still the last-completed
item when the next sync starts. This lead to spurious entries in
the "Recent Changes" list.

src/libsync/progressdispatcher.cpp

index 09022e6894ef7ae066c5b5599b4f20c30fb6970b..d630d3e4ff3630ac1c23732e80d2a01fecff9fc2 100644 (file)
@@ -147,6 +147,7 @@ void ProgressInfo::reset()
     _maxBytesPerSecond = 100000.0;
     _maxFilesPerSecond = 2.0;
     _updateEstimatesTimer.stop();
+    _lastCompletedItem = SyncFileItem();
 }
 
 void ProgressInfo::startEstimateUpdates()