NOISSUE some safe refactors and changes of the task subsystem
Possibly also some bug fixes.
This commit is contained in:
@ -48,12 +48,12 @@ bool ProgressWidget::exec(std::shared_ptr<Task> task)
|
||||
{
|
||||
loop.exec();
|
||||
}
|
||||
return task->successful();
|
||||
return task->wasSuccessful();
|
||||
}
|
||||
|
||||
void ProgressWidget::handleTaskFinish()
|
||||
{
|
||||
if (!m_task->successful())
|
||||
if (!m_task->wasSuccessful())
|
||||
{
|
||||
m_label->setText(m_task->failReason());
|
||||
}
|
||||
|
Reference in New Issue
Block a user