Qt/MainWindow: Don't unpause after confirming shutdown

There's no good reason to do this, as it just causes running signals to
be sent as the core is shutting down.
This commit is contained in:
Techjar 2019-01-26 07:26:56 -05:00
parent 51a219c54d
commit 408029e8a3
1 changed files with 5 additions and 3 deletions

View File

@ -766,11 +766,13 @@ bool MainWindow::RequestStop()
"before it completes. Force stop?") :
tr("Do you want to stop the current emulation?"));
if (pause)
Core::SetState(state);
if (confirm != QMessageBox::Yes)
{
if (pause)
Core::SetState(state);
return false;
}
}
// TODO: Add Movie shutdown