From 4871fd301afb9806e158e6b0ebad3ba74868602d Mon Sep 17 00:00:00 2001 From: tududweb Date: Wed, 7 Sep 2022 18:05:19 +0800 Subject: [PATCH] UI: Don't trigger a settings update when list is empty To avoid recursive call --- UI/properties-view.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/UI/properties-view.cpp b/UI/properties-view.cpp index a34622674..f69264dd4 100644 --- a/UI/properties-view.cpp +++ b/UI/properties-view.cpp @@ -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;