mirror of
https://github.com/citra-emu/citra.git
synced 2024-11-22 16:50:06 +00:00
Merge pull request #763 from bunnei/qt-fix-crash
Qt: Shutdown emulation session only if EmuThread exists.
This commit is contained in:
commit
09c8110e1a
@ -337,6 +337,8 @@ void GMainWindow::closeEvent(QCloseEvent* event)
|
|||||||
settings.setValue("firstStart", false);
|
settings.setValue("firstStart", false);
|
||||||
SaveHotkeys(settings);
|
SaveHotkeys(settings);
|
||||||
|
|
||||||
|
// Shutdown session if the emu thread is active...
|
||||||
|
if (emu_thread != nullptr)
|
||||||
ShutdownGame();
|
ShutdownGame();
|
||||||
|
|
||||||
render_window->close();
|
render_window->close();
|
||||||
|
Loading…
Reference in New Issue
Block a user