only increment the progressbar for files when the file has been fully transfered

This commit is contained in:
Olivier Goffart 2014-05-07 12:34:55 +02:00
parent 4c77a04514
commit f034bcb9ae

View file

@ -635,7 +635,7 @@ void AccountSettings::slotSetProgress(const QString& folder, const Progress::Inf
int overallPercent = 0;
if( progress._totalFileCount > 0 ) {
// Add one 'byte' for each files so the percentage is moving when deleting or renaming files
overallPercent = qRound(double(completedSize + currentFile)/double(progress._totalSize + progress._totalFileCount) * 100.0);
overallPercent = qRound(double(completedSize + progress._completedFileCount)/double(progress._totalSize + progress._totalFileCount) * 100.0);
}
item->setData( overallPercent, FolderStatusDelegate::SyncProgressOverallPercent);
}