Skip to content

Commit

Permalink
Fixing updating when new node is selected.
Browse files Browse the repository at this point in the history
  • Loading branch information
matthewsholden committed Feb 4, 2015
1 parent 81cb855 commit b728528
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Widgets/qSlicerLinearObjectCollectionWidget.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -158,7 +158,7 @@ ::SetCurrentNode( vtkMRMLNode* newNode )
vtkMRMLLinearObjectCollectionNode* oldCollectionNode = vtkMRMLLinearObjectCollectionNode::SafeDownCast( d->LinearObjectCollectionNodeComboBox->currentNode() );

// Only update the widget if it is a new collection node
if ( newCollectionNode == newCollectionNode )
if ( newCollectionNode == oldCollectionNode )
{
return;
}
Expand Down

0 comments on commit b728528

Please sign in to comment.