UI: Fix crash when double-clicking projector

If "transition on double click" was enabled, OBS assumed all double
clicks were going to multiview projectors, which isn't necessarily the
case.
This commit is contained in:
Richard Stanway
2023-05-13 16:38:09 -07:00
committed by Jim
parent 8b816eba8e
commit 4176f9b13a
+4
View File
@@ -229,6 +229,10 @@ void OBSProjector::mouseDoubleClickEvent(QMouseEvent *event)
if (!transitionOnDoubleClick)
return;
// Only MultiView projectors handle double click
if (this->type != ProjectorType::Multiview)
return;
OBSBasic *main = (OBSBasic *)obs_frontend_get_main_window();
if (!main->IsPreviewProgramMode())
return;