| 381 | } |
| 382 | |
| 383 | void |
| 384 | ProgressPanel::onTaskRestarted(const NodePtr& node, |
| 385 | const boost::shared_ptr<ProcessHandler>& process) |
| 386 | { |
| 387 | QMutexLocker k(&_imp->tasksMutex); |
| 388 | ProgressTaskInfoPtr task; |
| 389 | |
| 390 | task = _imp->findTask(node); |
| 391 | if (!task) { |
| 392 | return; |
| 393 | } |
| 394 | //The process may have changed |
| 395 | if (process) { |
| 396 | task->setProcesshandler(process); |
| 397 | connectProcessSlots( task.get(), process.get() ); |
| 398 | } |
| 399 | } |
| 400 | |
| 401 | void |
| 402 | ProgressPanel::doProgressStartOnMainThread(const NodePtr& node, |
no test coverage detected