mirror of
https://github.com/WarmUpTill/SceneSwitcher.git
synced 2026-08-16 06:08:12 -05:00
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:
@@ -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();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user