Permalink
Browse files

BUG: 3028. Force volume selection callback execution on loading a vol…

…ume in qMRMLSliceControllerWidgetPrivate::updateFromMRMLScene()

git-svn-id: http://svn.slicer.org/Slicer4/trunk@21835 3bd1e089-480b-0410-8dfb-8563597acbee
  • Loading branch information...
1 parent 65a57f8 commit f1d42a95ef90f83e6ca2b2d25f43cc695fd7bc89 alexy committed Mar 23, 2013
Showing with 3 additions and 0 deletions.
  1. +3 −0 Libs/MRML/Widgets/qMRMLSliceControllerWidget.cxx
@@ -891,18 +891,21 @@ void qMRMLSliceControllerWidgetPrivate::updateWidgetFromMRMLSliceCompositeNode()
this->ForegroundComboBox->setCurrentNode(
q->mrmlScene()->GetNodeByID(this->MRMLSliceCompositeNode->GetForegroundVolumeID()));
this->ForegroundComboBox->blockSignals(wasBlocked);
+ this->onForegroundLayerNodeSelected(q->mrmlScene()->GetNodeByID(this->MRMLSliceCompositeNode->GetForegroundVolumeID()));
// Update "background layer" node selector
wasBlocked = this->BackgroundComboBox->blockSignals(true);
this->BackgroundComboBox->setCurrentNode(
q->mrmlScene()->GetNodeByID(this->MRMLSliceCompositeNode->GetBackgroundVolumeID()));
this->BackgroundComboBox->blockSignals(wasBlocked);
+ this->onBackgroundLayerNodeSelected(q->mrmlScene()->GetNodeByID(this->MRMLSliceCompositeNode->GetBackgroundVolumeID()));
// Update "label map" node selector
wasBlocked = this->LabelMapComboBox->blockSignals(true);
this->LabelMapComboBox->setCurrentNode(
q->mrmlScene()->GetNodeByID(this->MRMLSliceCompositeNode->GetLabelVolumeID()));
this->LabelMapComboBox->blockSignals(wasBlocked);
+ this->onLabelMapNodeSelected(q->mrmlScene()->GetNodeByID(this->MRMLSliceCompositeNode->GetLabelVolumeID()));
// Label opacity
this->LabelMapOpacitySlider->setValue(this->MRMLSliceCompositeNode->GetLabelOpacity());

0 comments on commit f1d42a9

Please sign in to comment.