qt: attempt fixing freezes on power off of emulated machine

This commit is contained in:
Cacodemon345
2022-05-05 11:55:17 +06:00
committed by GitHub
parent 932f817a67
commit 2545da8e04

View File

@@ -34,6 +34,7 @@
#include <QCoreApplication> #include <QCoreApplication>
#include <QDateTime> #include <QDateTime>
#include <QLocalSocket> #include <QLocalSocket>
#include <QTimer>
#include <QLibrary> #include <QLibrary>
#include <QElapsedTimer> #include <QElapsedTimer>
@@ -371,7 +372,7 @@ plat_power_off(void)
cycles -= 99999999; cycles -= 99999999;
cpu_thread_run = 0; cpu_thread_run = 0;
main_window->close(); QTimer::singleShot(0, main_window, &QMainWindow::close);
} }
void set_language(uint32_t id) { void set_language(uint32_t id) {