If the segmentation task changed, reset all member variables to expected * default values and reset the file system watcher. */
| 396 | * default values and reset the file system watcher. |
| 397 | */ |
| 398 | void QmitkSegmentationTaskListWidget::SetTaskList(mitk::SegmentationTaskList* taskList) |
| 399 | { |
| 400 | if (m_TaskList != taskList) |
| 401 | { |
| 402 | m_TaskList = taskList; |
| 403 | |
| 404 | if (taskList != nullptr) |
| 405 | { |
| 406 | this->SetCurrentTaskIndex(0); |
| 407 | } |
| 408 | else |
| 409 | { |
| 410 | this->SetCurrentTaskIndex(std::nullopt); |
| 411 | } |
| 412 | |
| 413 | this->ResetFileSystemWatcher(); |
| 414 | } |
| 415 | } |
| 416 | |
| 417 | void QmitkSegmentationTaskListWidget::ResetFileSystemWatcher() |
| 418 | { |
no test coverage detected