mirror of
https://github.com/obsproject/obs-studio.git
synced 2026-09-24 23:31:36 +08:00
frontend: Remove crash handler earlier in shutdown
This commit is contained in:
@@ -1894,9 +1894,10 @@ bool OBSBasic::promptToClose()
|
||||
|
||||
SetShowing(true);
|
||||
QMessageBox::StandardButton button =
|
||||
OBSMessageBox::question(this, QTStr("ConfirmExit.Title"), QTStr("ConfirmExit.Text"));
|
||||
OBSMessageBox::question(this, QTStr("ConfirmExit.Title"), QTStr("ConfirmExit.Text"),
|
||||
QMessageBox::StandardButtons(QMessageBox::Ok | QMessageBox::Cancel));
|
||||
|
||||
if (button == QMessageBox::No) {
|
||||
if (button == QMessageBox::Cancel) {
|
||||
isClosePromptOpen_ = false;
|
||||
return false;
|
||||
}
|
||||
@@ -1971,6 +1972,8 @@ void OBSBasic::closeWindow()
|
||||
applicationShutdown();
|
||||
deleteLater();
|
||||
|
||||
emit mainWindowClosed();
|
||||
|
||||
QMetaObject::invokeMethod(App(), "quit", Qt::QueuedConnection);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user