Qt: Fix emulation not returning to its original state when aborting shutdown

This commit is contained in:
spycrab 2017-06-27 18:06:27 +02:00
parent 94ba78d717
commit feb67a3953
1 changed files with 3 additions and 3 deletions

View File

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