Minor changes related to Emu.Stop()

This commit is contained in:
Megamouse 2020-11-24 19:13:42 +01:00
parent d8e9382573
commit 9efedbe76a
3 changed files with 14 additions and 3 deletions

View file

@ -2227,7 +2227,10 @@ void main_window::closeEvent(QCloseEvent* closeEvent)
}
// Cleanly stop and quit the emulator.
Emu.Stop();
if (!Emu.IsStopped())
{
Emu.Stop();
}
Emu.Quit(true);
}