NOISSUE some safe refactors and changes of the task subsystem

Possibly also some bug fixes.
This commit is contained in:
Petr Mrázek
2017-06-26 01:14:32 +02:00
parent 2973b11d3e
commit 89d3a66658
18 changed files with 94 additions and 167 deletions

View File

@ -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());
}