Close the main window after ACPI/APM shutdown

This commit is contained in:
Cacodemon345
2021-12-24 12:59:10 +06:00
parent ff175e399e
commit 13d75c2e4f
2 changed files with 5 additions and 1 deletions

View File

@@ -270,7 +270,7 @@ MainWindow::MainWindow(QWidget *parent) :
}
void MainWindow::closeEvent(QCloseEvent *event) {
if (confirm_exit)
if (confirm_exit && cpu_thread_run)
{
QMessageBox questionbox(QMessageBox::Icon::Question, "86Box", "Are you sure you want to exit 86Box?", QMessageBox::Yes | QMessageBox::No, this);
QCheckBox *chkbox = new QCheckBox("Do not ask me again");