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.
This commit is contained in:
cg2121 2023-01-21 13:41:33 -06:00 committed by Matt Gajownik
parent 018ce16703
commit 610a2171a2

View file

@ -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);
}
}