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

To avoid recursive call
This commit is contained in:
tududweb
2023-06-07 12:50:48 -07:00
committed by Lain
parent 4bfe291520
commit 4871fd301a
+1 -1
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;