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.
This commit is contained in:
cg2121
2018-06-27 23:11:10 -05:00
parent 618a1c5faf
commit cfa427c44f
+6 -2
View File
@@ -4953,8 +4953,10 @@ void OBSBasic::on_streamButton_clicked()
QTStr("ConfirmStop.Title"),
QTStr("ConfirmStop.Text"));
if (button == QMessageBox::No)
if (button == QMessageBox::No) {
ui->streamButton->setChecked(true);
return;
}
}
StopStreaming();
@@ -4968,8 +4970,10 @@ void OBSBasic::on_streamButton_clicked()
QTStr("ConfirmStart.Title"),
QTStr("ConfirmStart.Text"));
if (button == QMessageBox::No)
if (button == QMessageBox::No) {
ui->streamButton->setChecked(false);
return;
}
}
StartStreaming();