UI: Add confirmation when clicking stop stream

I decided to add a confirmation message box simply to prevent cases
where users may accidentally click "Stop Streaming".
This commit is contained in:
jp9000 committed 2015-09-06 16:33:57 -07:00
1 parent ee9cb8a931
commit a508c17f0a
2 files changed
+8

No files matched your search

+6
View File
@@ -3058,6 +3058,12 @@ void OBSBasic::StartStreaming()
void OBSBasic::StopStreaming()
{
QMessageBox::StandardButton button = QMessageBox::question(this,
QTStr("Basic.Main.StopStreaming.Title"),
QTStr("Basic.Main.StopStreaming.Text"));
if (button == QMessageBox::No)
return;
SaveProject();
if (outputHandler->StreamingActive())