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

Signed-off-by: flow <flowlnlnln@gmail.com>
This commit is contained in:
flow committed 2022-08-28 16:29:01 -03:00
1 parent 369a8cdc74
commit a720bcc637
1 file changed
-5
-5
View File
@@ -132,11 +132,6 @@ void ConcurrentTask::subTaskStatus(const QString& msg)
void ConcurrentTask::subTaskProgress(qint64 current, qint64 total)
{
if (total == 0) {
setProgress(0, 100);
return;
}
m_stepProgress = current;
m_stepTotalProgress = total;
}