From dcd2f19c83003f1a1e19065fd48a2a17138ecfea Mon Sep 17 00:00:00 2001 From: cg2121 Date: Tue, 11 Jun 2024 04:40:02 -0500 Subject: [PATCH] UI: Remove redundant addAction call This removes a redundant addAction call in the studio mode program context menu. --- UI/window-basic-main.cpp | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) diff --git a/UI/window-basic-main.cpp b/UI/window-basic-main.cpp index b8e9d4f28..eb3ea40ab 100644 --- a/UI/window-basic-main.cpp +++ b/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);