diff --git a/src/qt/qt_platform.cpp b/src/qt/qt_platform.cpp index 9a2f2d8a2..b697a6728 100644 --- a/src/qt/qt_platform.cpp +++ b/src/qt/qt_platform.cpp @@ -34,6 +34,7 @@ #include #include #include +#include #include #include @@ -371,7 +372,7 @@ plat_power_off(void) cycles -= 99999999; cpu_thread_run = 0; - main_window->close(); + QTimer::singleShot(0, main_window, &QMainWindow::close); } void set_language(uint32_t id) {