浏览代码

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 年之前
父节点
当前提交
610a2171a2
共有 1 个文件被更改,包括 1 次插入1 次删除
  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);
 		}
 	}