Browse Source

UI: Don't open properties dialog if item is scene

This disables opening of the properties dialog if a scene is double
clicked in the source tree.
cg2121 2 years ago
parent
commit
610a2171a2
1 changed files with 1 additions and 1 deletions
  1. 1 1
      UI/source-tree.cpp

+ 1 - 1
UI/source-tree.cpp

@@ -328,7 +328,7 @@ void SourceTreeItem::mouseDoubleClickEvent(QMouseEvent *event)
 		obs_source_t *source = obs_sceneitem_get_source(sceneitem);
 		OBSBasic *main =
 			reinterpret_cast<OBSBasic *>(App()->GetMainWindow());
-		if (source) {
+		if (obs_source_configurable(source)) {
 			main->CreatePropertiesWindow(source);
 		}
 	}