From cfa427c44ff0b1b9f3156580062af40111b570e1 Mon Sep 17 00:00:00 2001 From: cg2121 Date: Wed, 27 Jun 2018 23:01:25 -0500 Subject: [PATCH] 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. --- UI/window-basic-main.cpp | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/UI/window-basic-main.cpp b/UI/window-basic-main.cpp index c60371832..13bf01337 100644 --- a/UI/window-basic-main.cpp +++ b/UI/window-basic-main.cpp @@ -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();