From 476435f3d06ca403d64e80cdb85b6066ad008b52 Mon Sep 17 00:00:00 2001 From: OBattler Date: Mon, 11 Jul 2022 03:44:30 +0200 Subject: [PATCH] Attempt to fix Mac builds. --- src/qt/qt_platform.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/qt/qt_platform.cpp b/src/qt/qt_platform.cpp index 3f323b12f..91f76d900 100644 --- a/src/qt/qt_platform.cpp +++ b/src/qt/qt_platform.cpp @@ -39,6 +39,7 @@ #include #include +#include "qt_rendererstack.hpp" #include "qt_mainwindow.hpp" #include "qt_progsettings.hpp" @@ -372,7 +373,7 @@ plat_power_off(void) cycles -= 99999999; cpu_thread_run = 0; - QTimer::singleShot(0, main_window, &QMainWindow::close); + QTimer::singleShot(0, (const QWidget *) main_window, &QMainWindow::close); } void set_language(uint32_t id) {