Fix scene item name conflict selection not being visible

For example, this could happen when the widget was initially created and
SetSceneItem() was called, since currentSelection was still not set
This commit is contained in:
WarmUpTill
2024-01-04 00:44:31 +01:00
committed by WarmUpTill
parent 6398f4a698
commit 777d52a167

View File

@@ -635,6 +635,8 @@ void SceneItemSelectionWidget::SetSceneItem(const SceneItemSelection &item)
_pattern->setText(item._pattern);
_regex->SetRegexConfig(item._regex);
_currentSelection = item;
SetNameConflictVisibility();
switch (item._nameConflictSelectionType) {
@@ -651,7 +653,6 @@ void SceneItemSelectionWidget::SetSceneItem(const SceneItemSelection &item)
_nameConflictIndex->setCurrentIndex(idx);
break;
}
_currentSelection = item;
SetWidgetVisibility();
}