Преглед изворни кода

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

Qt: Shutdown emulation session only if EmuThread exists.
bunnei пре 11 година
родитељ
комит
09c8110e1a
1 измењених фајлова са 3 додато и 1 уклоњено
  1. 3 1
      src/citra_qt/main.cpp

+ 3 - 1
src/citra_qt/main.cpp

@@ -337,7 +337,9 @@ void GMainWindow::closeEvent(QCloseEvent* event)
     settings.setValue("firstStart", false);
     settings.setValue("firstStart", false);
     SaveHotkeys(settings);
     SaveHotkeys(settings);
 
 
-    ShutdownGame();
+    // Shutdown session if the emu thread is active...
+    if (emu_thread != nullptr)
+        ShutdownGame();
 
 
     render_window->close();
     render_window->close();