Skip to content

Commit

Permalink
STYLE: qSlicerExportNodeDialog: Fix typo in variable name
Browse files Browse the repository at this point in the history
Typo in `typeDisplayNameCollison` should be `typeDisplayNameCollision`
  • Loading branch information
luzpaz authored and jcfr committed Aug 8, 2022
1 parent abe9761 commit 8f78fbb
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions Base/QTGUI/qSlicerExportNodeDialog.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -702,7 +702,7 @@ bool qSlicerExportNodeDialogPrivate::populateNodeTypeWidgetSets()
// Check if a type display name is shared with any other NodeTypeWidgetSet currently in the dialog.
// Hopefully not, so we can use type display names in the label text.
// If there's a collision, resort to using node type identifier (i.e. class name) in the label text.
bool typeDisplayNameCollison = false;
bool typeDisplayNameCollision = false;
for (const auto& otherNodeType : this->NodeTypesInDialog)
{
if (nodeType==otherNodeType)
Expand All @@ -716,11 +716,11 @@ bool qSlicerExportNodeDialogPrivate::populateNodeTypeWidgetSets()
}
if (nodeTypeWidgetSet->getTypeDisplayName() == otherNodeTypeWidgetSet->getTypeDisplayName())
{
typeDisplayNameCollison = true;
typeDisplayNameCollision = true;
break;
}
}
if (!typeDisplayNameCollison)
if (!typeDisplayNameCollision)
{
nodeTypeWidgetSet->setLabelText(nodeTypeWidgetSet->getTypeDisplayName());
}
Expand Down

0 comments on commit 8f78fbb

Please sign in to comment.