From cd900d7091e900e7e6c551f74b47ae270b126f35 Mon Sep 17 00:00:00 2001 From: gxalpha Date: Fri, 10 Sep 2021 07:40:34 +0200 Subject: [PATCH] UI: Try closing remux before initiating shutdown Makes OBS try to close the remux dialog before Clearing Scene data since in case a remux might still be going on and the user does want to abort closing OBS. --- UI/window-basic-main.cpp | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/UI/window-basic-main.cpp b/UI/window-basic-main.cpp index 2fd803e63..35cdc8494 100644 --- a/UI/window-basic-main.cpp +++ b/UI/window-basic-main.cpp @@ -4676,6 +4676,12 @@ void OBSBasic::closeEvent(QCloseEvent *event) } } + if (remux && !remux->close()) { + event->ignore(); + restart = false; + return; + } + QWidget::closeEvent(event); if (!event->isAccepted()) return;