From 7f76fcff5e1e7d93f21267bfa493e6c5a3944859 Mon Sep 17 00:00:00 2001 From: Olivier Goffart Date: Mon, 20 Jan 2014 16:49:52 +0100 Subject: [PATCH] Do not account the size of deleted or renamed file in the progress Fixes #1360 --- src/mirall/csyncthread.cpp | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/src/mirall/csyncthread.cpp b/src/mirall/csyncthread.cpp index a0cc40717..ebd846dcd 100644 --- a/src/mirall/csyncthread.cpp +++ b/src/mirall/csyncthread.cpp @@ -658,14 +658,12 @@ void CSyncThread::slotProgress(Progress::Kind kind, const SyncFileItem& item, qu _currentFileNo += 1; _previousIndex = indx; } + curr = 0; } if( kind == Progress::EndUpload || - kind == Progress::EndDownload || - kind == Progress::EndRename || - kind == Progress::EndDelete ) { + kind == Progress::EndDownload) { _lastOverallBytes += total; - curr = 0; } Progress::Info pInfo(_progressInfo);