Progress: in case of resuming chunks, advance directly at startup by the amount of chunk already done

Fixes #2103
This commit is contained in:
Olivier Goffart 2014-08-29 16:06:56 +02:00
parent a73fbccf8c
commit 34a27c748a

View file

@ -382,7 +382,7 @@ void PropagateUploadFileQNAM::slotUploadProgress(qint64 sent, qint64)
int progressChunk = _currentChunk + _startChunk;
if (progressChunk >= _chunkCount)
progressChunk = _currentChunk;
emit progress(_item, sent + _currentChunk * chunkSize());
emit progress(_item, sent + progressChunk * chunkSize());
}