Fix task restarting

The task collection needs to track the restarted task as
uncompleted. This was accidentally left out of df2d638e.
parent 3eb5d235
......@@ -115,6 +115,11 @@ void TaskCollection::Private::taskStarted()
assert(m_tasks.find(task->id()) != m_tasks.end());
Q_EMIT q->started(m_tasks[task->id()]);
calculateAndEmitProgress(); // start Knight-Rider-Mode right away (gpgsm doesn't report _any_ progress).
if (m_doneEmitted) {
// We are not done anymore, one task restarted.
m_nCompleted--;
m_doneEmitted = false;
}
}
void TaskCollection::Private::calculateAndEmitProgress()
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment