0
0
mirror of https://github.com/obsproject/obs-studio.git synced 2024-09-20 04:42:18 +02:00

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;