소스 검색

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.
Richard Stanway 2 년 전
부모
커밋
d2019b92d4
1개의 변경된 파일4개의 추가작업 그리고 0개의 파일을 삭제
  1. 4 0
      UI/window-projector.cpp

+ 4 - 0
UI/window-projector.cpp

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