소스 검색

UI: Remove redundant addAction call

This removes a redundant addAction call in the studio mode program
context menu.
cg2121 1 년 전
부모
커밋
dcd2f19c83
1개의 변경된 파일2개의 추가작업 그리고 7개의 파일을 삭제
  1. 2 7
      UI/window-basic-main.cpp

+ 2 - 7
UI/window-basic-main.cpp

@@ -8407,13 +8407,8 @@ void OBSBasic::ProgramViewContextMenuRequested()
 				 &OBSBasic::OpenStudioProgramProjector);
 
 	popup.addMenu(studioProgramProjector);
-
-	QAction *studioProgramWindow =
-		popup.addAction(QTStr("StudioProgramWindow"), this,
-				&OBSBasic::OpenStudioProgramWindow);
-
-	popup.addAction(studioProgramWindow);
-
+	popup.addAction(QTStr("StudioProgramWindow"), this,
+			&OBSBasic::OpenStudioProgramWindow);
 	popup.addAction(QTStr("Screenshot.StudioProgram"), this,
 			&OBSBasic::ScreenshotProgram);