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.
master
Richard Stanway 2019-11-27 12:30:15 +01:00
parent 2a6baf9886
commit 2a917531fd
No known key found for this signature in database
GPG Key ID: AAC1E5265D71B3FD
1 changed files with 9 additions and 3 deletions

View File

@ -5742,7 +5742,9 @@ void OBSBasic::on_streamButton_clicked()
QMessageBox::StandardButton button = QMessageBox::StandardButton button =
OBSMessageBox::question( OBSMessageBox::question(
this, QTStr("ConfirmStop.Title"), this, QTStr("ConfirmStop.Title"),
QTStr("ConfirmStop.Text")); QTStr("ConfirmStop.Text"),
QMessageBox::Yes | QMessageBox::No,
QMessageBox::No);
if (button == QMessageBox::No) { if (button == QMessageBox::No) {
ui->streamButton->setChecked(true); ui->streamButton->setChecked(true);
@ -5778,7 +5780,9 @@ void OBSBasic::on_streamButton_clicked()
QMessageBox::StandardButton button = QMessageBox::StandardButton button =
OBSMessageBox::question( OBSMessageBox::question(
this, QTStr("ConfirmStart.Title"), this, QTStr("ConfirmStart.Title"),
QTStr("ConfirmStart.Text")); QTStr("ConfirmStart.Text"),
QMessageBox::Yes | QMessageBox::No,
QMessageBox::No);
if (button == QMessageBox::No) { if (button == QMessageBox::No) {
ui->streamButton->setChecked(false); ui->streamButton->setChecked(false);
@ -5800,7 +5804,9 @@ void OBSBasic::on_recordButton_clicked()
QMessageBox::StandardButton button = QMessageBox::StandardButton button =
OBSMessageBox::question( OBSMessageBox::question(
this, QTStr("ConfirmStopRecord.Title"), this, QTStr("ConfirmStopRecord.Title"),
QTStr("ConfirmStopRecord.Text")); QTStr("ConfirmStopRecord.Text"),
QMessageBox::Yes | QMessageBox::No,
QMessageBox::No);
if (button == QMessageBox::No) { if (button == QMessageBox::No) {
ui->recordButton->setChecked(true); ui->recordButton->setChecked(true);