1
0
mirror of https://git.suyu.dev/suyu/suyu synced 2025-08-26 22:16:28 -05:00

Qt: Shutdown emulation session only if EmuThread exists.

This commit is contained in:
bunnei
2015-05-12 23:14:24 -04:00
parent 9d8e1f7a92
commit c3bd797917

View File

@@ -337,7 +337,9 @@ void GMainWindow::closeEvent(QCloseEvent* event)
settings.setValue("firstStart", false);
SaveHotkeys(settings);
ShutdownGame();
// Shutdown session if the emu thread is active...
if (emu_thread != nullptr)
ShutdownGame();
render_window->close();