mirror of
https://github.com/obsproject/obs-studio.git
synced 2026-08-24 02:34:23 -05:00
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:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user