mirror of
https://github.com/86Box/86Box.git
synced 2026-02-23 01:48:21 -07:00
Close the main window after ACPI/APM shutdown
This commit is contained in:
@@ -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");
|
||||
|
||||
Reference in New Issue
Block a user