UI: Don't trigger a settings update when list is empty

To avoid recursive call
This commit is contained in:
tududweb 2022-09-07 18:05:19 +08:00 committed by Lain
parent 4bfe291520
commit 4871fd301a

View file

@ -694,7 +694,7 @@ QWidget *OBSPropertiesView::AddList(obs_property_t *prop, bool &warning)
children.emplace_back(info);
/* trigger a settings update if the index was not found */
if (idx == -1)
if (count && idx == -1)
info->ControlChanged();
return combo;