| 202 | } |
| 203 | |
| 204 | void Manager::finishTask(const TaskPtr &task) |
| 205 | { |
| 206 | SOFT_ASSERT(task, return ); |
| 207 | LTRACE() << "finishTask" << task; |
| 208 | |
| 209 | --activeTaskCount_; |
| 210 | tray_->setActiveTaskCount(activeTaskCount_); |
| 211 | |
| 212 | if (!task->isValid()) { |
| 213 | tray_->showError(task->error); |
| 214 | tray_->setTaskActionsEnabled(false); |
| 215 | return; |
| 216 | } |
| 217 | |
| 218 | tray_->showSuccess(); |
| 219 | } |
| 220 | |
| 221 | void Manager::captured(const TaskPtr &task) |
| 222 | { |
nothing calls this directly
no test coverage detected