mirror of
https://github.com/obsproject/obs-studio.git
synced 2024-07-15 07:44:10 +00: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:
parent
8b816eba8e
commit
4176f9b13a
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue