From 18276c0c843810472758196ec34433b445bd9d9a Mon Sep 17 00:00:00 2001 From: jp9000 Date: Sun, 21 Aug 2016 11:29:56 -0700 Subject: [PATCH] UI: Only use shutdown separator upon successful close Fixes an issue where the shutdown separator in the log file would always appear even when the user decides not to shut down the program after clicking close when still streaming/recording. --- obs/window-basic-main.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/obs/window-basic-main.cpp b/obs/window-basic-main.cpp index 7fdb81817..11a801478 100644 --- a/obs/window-basic-main.cpp +++ b/obs/window-basic-main.cpp @@ -2612,8 +2612,6 @@ void OBSBasic::ClearSceneData() void OBSBasic::closeEvent(QCloseEvent *event) { - blog(LOG_INFO, SHUTDOWN_SEPARATOR); - if (outputHandler && outputHandler->Active()) { SetShowing(true); @@ -2631,6 +2629,8 @@ void OBSBasic::closeEvent(QCloseEvent *event) if (!event->isAccepted()) return; + blog(LOG_INFO, SHUTDOWN_SEPARATOR); + if (updateCheckThread) updateCheckThread->wait(); if (logUploadThread)