| 389 | } |
| 390 | |
| 391 | void |
| 392 | ProgressPanel::onTaskRestarted(const NodePtr& node, |
| 393 | const ProcessHandlerPtr& process) |
| 394 | { |
| 395 | QMutexLocker k(&_imp->tasksMutex); |
| 396 | ProgressTaskInfoPtr task; |
| 397 | |
| 398 | task = _imp->findTask(node); |
| 399 | if (!task) { |
| 400 | return; |
| 401 | } |
| 402 | //The process may have changed |
| 403 | if (process) { |
| 404 | task->setProcesshandler(process); |
| 405 | connectProcessSlots( task.get(), process.get() ); |
| 406 | } |
| 407 | } |
| 408 | |
| 409 | void |
| 410 | ProgressPanel::doProgressStartOnMainThread(const NodePtr& node, |
no test coverage detected