Merge pull request #7741 from Techjar/no-resume-on-stop

Qt/MainWindow: Don't unpause after confirming shutdown
This commit is contained in:
Connor McLaughlin 2019-01-26 23:48:52 +10:00 committed by GitHub
commit ff5e296576
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
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