浏览代码

UI: Don't trigger a settings update when list is empty
To avoid recursive call

(cherry picked from commit 4871fd301afb9806e158e6b0ebad3ba74868602d)

tududweb 3 年之前
父节点
当前提交
018bfe87e7
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      UI/properties-view.cpp

+ 1 - 1
UI/properties-view.cpp

@@ -647,7 +647,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;