qt: attempt fixing freezes on power off of emulated machine
This commit is contained in:
@@ -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) {
|
||||||
|
Reference in New Issue
Block a user