1
0
Fork 0
forked from suyu/suyu

Merge pull request #763 from bunnei/qt-fix-crash

Qt: Shutdown emulation session only if EmuThread exists.
This commit is contained in:
bunnei 2015-05-13 22:07:35 -04:00
commit 09c8110e1a

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();