Skip to content
Snippets Groups Projects
Commit 09c8110e authored by bunnei's avatar bunnei
Browse files

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

Qt: Shutdown emulation session only if EmuThread exists.
parents 9e8b703b c3bd7979
No related branches found
No related tags found
No related merge requests found
......@@ -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();
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment