UI: Fix stream button checkable state

This fixes an issue where the stream button would still be
checked when clicking no on the stream confirmation dialog.
master
cg2121 2018-06-27 23:01:25 -05:00
parent 618a1c5faf
commit cfa427c44f
1 changed files with 6 additions and 2 deletions

View File

@ -4953,9 +4953,11 @@ void OBSBasic::on_streamButton_clicked()
QTStr("ConfirmStop.Title"), QTStr("ConfirmStop.Title"),
QTStr("ConfirmStop.Text")); QTStr("ConfirmStop.Text"));
if (button == QMessageBox::No) if (button == QMessageBox::No) {
ui->streamButton->setChecked(true);
return; return;
} }
}
StopStreaming(); StopStreaming();
} else { } else {
@ -4968,9 +4970,11 @@ void OBSBasic::on_streamButton_clicked()
QTStr("ConfirmStart.Title"), QTStr("ConfirmStart.Title"),
QTStr("ConfirmStart.Text")); QTStr("ConfirmStart.Text"));
if (button == QMessageBox::No) if (button == QMessageBox::No) {
ui->streamButton->setChecked(false);
return; return;
} }
}
StartStreaming(); StartStreaming();
} }