summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorGravatar bunnei2015-05-12 23:14:24 -0400
committerGravatar bunnei2015-05-12 23:14:24 -0400
commitc3bd7979175de01b7392cb8de48fd1caa6ce89cb (patch)
tree41f1757af346bbfcbbe75597d9c419cd08395198 /src
parentMerge pull request #760 from yuriks/gpu-profile (diff)
downloadyuzu-c3bd7979175de01b7392cb8de48fd1caa6ce89cb.tar.gz
yuzu-c3bd7979175de01b7392cb8de48fd1caa6ce89cb.tar.xz
yuzu-c3bd7979175de01b7392cb8de48fd1caa6ce89cb.zip
Qt: Shutdown emulation session only if EmuThread exists.
Diffstat (limited to '')
-rw-r--r--src/citra_qt/main.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/citra_qt/main.cpp b/src/citra_qt/main.cpp
index f115c5b6a..7b028e323 100644
--- a/src/citra_qt/main.cpp
+++ b/src/citra_qt/main.cpp
@@ -337,7 +337,9 @@ void GMainWindow::closeEvent(QCloseEvent* event)
337 settings.setValue("firstStart", false); 337 settings.setValue("firstStart", false);
338 SaveHotkeys(settings); 338 SaveHotkeys(settings);
339 339
340 ShutdownGame(); 340 // Shutdown session if the emu thread is active...
341 if (emu_thread != nullptr)
342 ShutdownGame();
341 343
342 render_window->close(); 344 render_window->close();
343 345