diff options
author | bunnei <bunneidev@gmail.com> | 2015-05-12 23:14:24 -0400 |
---|---|---|
committer | bunnei <bunneidev@gmail.com> | 2015-05-12 23:14:24 -0400 |
commit | c3bd7979175de01b7392cb8de48fd1caa6ce89cb (patch) | |
tree | 41f1757af346bbfcbbe75597d9c419cd08395198 /src/citra_qt/main.cpp | |
parent | 9d8e1f7a92f422ed646aaceb1f8361bc7e1383ce (diff) |
Qt: Shutdown emulation session only if EmuThread exists.
Diffstat (limited to 'src/citra_qt/main.cpp')
-rw-r--r-- | src/citra_qt/main.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/citra_qt/main.cpp b/src/citra_qt/main.cpp index f115c5b6a6..7b028e323b 100644 --- a/src/citra_qt/main.cpp +++ b/src/citra_qt/main.cpp @@ -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(); |