Browse Source

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

(cherry picked from commit 4871fd301afb9806e158e6b0ebad3ba74868602d)

tududweb 3 years ago
parent
commit
018bfe87e7
1 changed files with 1 additions and 1 deletions
  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);
 	children.emplace_back(info);
 
 
 	/* trigger a settings update if the index was not found */
 	/* trigger a settings update if the index was not found */
-	if (idx == -1)
+	if (count && idx == -1)
 		info->ControlChanged();
 		info->ControlChanged();
 
 
 	return combo;
 	return combo;