tasks are shared ptrs that can be cancelled and undone

This commit is contained in:
itsmattkc
2019-07-06 13:22:47 -05:00
parent b62ec30015
commit 3038af3482
7 changed files with 106 additions and 20 deletions
+1 -1
View File
@@ -75,7 +75,7 @@ void TaskViewItem::SetTask(Task *t)
// Connect to the task
connect(task_, SIGNAL(StatusChanged(Task::Status)), this, SLOT(TaskStatusChange(Task::Status)));
connect(task_, SIGNAL(ProgressChanged(int)), progress_bar_, SLOT(setValue(int)));
connect(task_, SIGNAL(destroyed()), this, SLOT(deleteLater()));
connect(task_, SIGNAL(Removed()), this, SLOT(deleteLater()));
connect(cancel_btn_, SIGNAL(clicked(bool)), task_, SLOT(Cancel()));
}