Skip to content

Commit

Permalink
BUG: Fix small bugs in External Beam Planning
Browse files Browse the repository at this point in the history
- When loading a scene a new markups POI node was created, because a temporary nullptr setting in the POI markups node combobox
- When plan node is selected that is not empty the instructions text is now cleared

Re #73
  • Loading branch information
cpinter committed Jun 18, 2019
1 parent bb1ddd8 commit 48fc425
Showing 1 changed file with 9 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -424,6 +424,9 @@ void qSlicerExternalBeamPlanningModuleWidget::setPlanNode(vtkMRMLNode* node)
firstBeamNode->InvokeCustomModifiedEvent(vtkMRMLRTBeamNode::BeamTransformModified);
}
}

// Clear instructions text
d->label_CalculateDoseStatus->setText("");
}

this->updateWidgetFromMRML();
Expand Down Expand Up @@ -514,6 +517,12 @@ void qSlicerExternalBeamPlanningModuleWidget::poisMarkupsNodeChanged(vtkMRMLNode
planNode->SetAndObservePoisMarkupsFiducialNode(vtkMRMLMarkupsFiducialNode::SafeDownCast(node));
planNode->DisableModifiedEventOff();

if (!node)
{
// Do not update beams or isocenter if no markups node was given
return;
}

// Update beam transforms based on new isocenter
std::vector<vtkMRMLRTBeamNode*> beams;
planNode->GetBeams(beams);
Expand Down

0 comments on commit 48fc425

Please sign in to comment.