fix: bogus progress update when the total step progress was zero

Signed-off-by: flow <flowlnlnln@gmail.com>
This commit is contained in:
flow 2022-07-22 00:29:28 -03:00
parent 369a8cdc74
commit a720bcc637
No known key found for this signature in database
GPG Key ID: 8D0F221F0A59F469

View File

@ -132,11 +132,6 @@ void ConcurrentTask::subTaskStatus(const QString& msg)
void ConcurrentTask::subTaskProgress(qint64 current, qint64 total) void ConcurrentTask::subTaskProgress(qint64 current, qint64 total)
{ {
if (total == 0) {
setProgress(0, 100);
return;
}
m_stepProgress = current; m_stepProgress = current;
m_stepTotalProgress = total; m_stepTotalProgress = total;
} }