From 2a917531fda377ee4720327df82d7f470828e9b1 Mon Sep 17 00:00:00 2001 From: Richard Stanway Date: Wed, 27 Nov 2019 12:30:15 +0100 Subject: [PATCH] UI: Default stream / record confirm dialogs to "No" Helps prevent accidental stream starting if for example a cat walks on the spacebar while the button has focus. --- UI/window-basic-main.cpp | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/UI/window-basic-main.cpp b/UI/window-basic-main.cpp index a5a5cf76d..f5972b559 100644 --- a/UI/window-basic-main.cpp +++ b/UI/window-basic-main.cpp @@ -5742,7 +5742,9 @@ void OBSBasic::on_streamButton_clicked() QMessageBox::StandardButton button = OBSMessageBox::question( this, QTStr("ConfirmStop.Title"), - QTStr("ConfirmStop.Text")); + QTStr("ConfirmStop.Text"), + QMessageBox::Yes | QMessageBox::No, + QMessageBox::No); if (button == QMessageBox::No) { ui->streamButton->setChecked(true); @@ -5778,7 +5780,9 @@ void OBSBasic::on_streamButton_clicked() QMessageBox::StandardButton button = OBSMessageBox::question( this, QTStr("ConfirmStart.Title"), - QTStr("ConfirmStart.Text")); + QTStr("ConfirmStart.Text"), + QMessageBox::Yes | QMessageBox::No, + QMessageBox::No); if (button == QMessageBox::No) { ui->streamButton->setChecked(false); @@ -5800,7 +5804,9 @@ void OBSBasic::on_recordButton_clicked() QMessageBox::StandardButton button = OBSMessageBox::question( this, QTStr("ConfirmStopRecord.Title"), - QTStr("ConfirmStopRecord.Text")); + QTStr("ConfirmStopRecord.Text"), + QMessageBox::Yes | QMessageBox::No, + QMessageBox::No); if (button == QMessageBox::No) { ui->recordButton->setChecked(true);