Do not account the size of deleted or renamed file in the progress

Fixes #1360
This commit is contained in:
Olivier Goffart 2014-01-20 16:49:52 +01:00
parent 0afbb264e0
commit 7f76fcff5e

View file

@ -658,14 +658,12 @@ void CSyncThread::slotProgress(Progress::Kind kind, const SyncFileItem& item, qu
_currentFileNo += 1; _currentFileNo += 1;
_previousIndex = indx; _previousIndex = indx;
} }
curr = 0;
} }
if( kind == Progress::EndUpload || if( kind == Progress::EndUpload ||
kind == Progress::EndDownload || kind == Progress::EndDownload) {
kind == Progress::EndRename ||
kind == Progress::EndDelete ) {
_lastOverallBytes += total; _lastOverallBytes += total;
curr = 0;
} }
Progress::Info pInfo(_progressInfo); Progress::Info pInfo(_progressInfo);