From 2b175d6da97401e69dd986a98de80aaa74cd05e2 Mon Sep 17 00:00:00 2001 From: SuslikV Date: Thu, 14 Sep 2017 15:01:15 +0200 Subject: [PATCH] UI: Add missing option to context menu Add 'Advanced Audio Properties' option to context menu over empty area of the Mixer's pane. --- UI/window-basic-main.cpp | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/UI/window-basic-main.cpp b/UI/window-basic-main.cpp index 5727258d1..2c72248f3 100644 --- a/UI/window-basic-main.cpp +++ b/UI/window-basic-main.cpp @@ -2327,12 +2327,25 @@ void OBSBasic::VolControlContextMenu() void OBSBasic::on_mixerScrollArea_customContextMenuRequested() { QAction unhideAllAction(QTStr("UnhideAll"), this); + + QAction advPropAction(QTStr("Basic.MainMenu.Edit.AdvAudio"), this); + + /* ------------------- */ + connect(&unhideAllAction, &QAction::triggered, this, &OBSBasic::UnhideAllAudioControls, Qt::DirectConnection); + connect(&advPropAction, &QAction::triggered, + this, &OBSBasic::on_actionAdvAudioProperties_triggered, + Qt::DirectConnection); + + /* ------------------- */ + QMenu popup(this); popup.addAction(&unhideAllAction); + popup.addSeparator(); + popup.addAction(&advPropAction); popup.exec(QCursor::pos()); }