mirror of
https://github.com/obsproject/obs-studio.git
synced 2024-07-19 17:49:14 +00:00
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.
This commit is contained in:
parent
3cfd30ae2a
commit
cd900d7091
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue