From b103697662e4705a3747e21b4f808f2d23d54242 Mon Sep 17 00:00:00 2001 From: Mike Solar Date: Fri, 17 Jul 2026 09:11:03 +0800 Subject: [PATCH] Fix Windows CI crash due to execute order. --- app/core.cpp | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/app/core.cpp b/app/core.cpp index 45e77d3f5..702fd0561 100644 --- a/app/core.cpp +++ b/app/core.cpp @@ -1336,7 +1336,11 @@ bool Core::SaveProject() void Core::ShowStatusBarMessage(const QString &s, int timeout) { - main_window_->statusBar()->showMessage(s, timeout); + // The main window only exists after StartGUI(); in tests and other + // contexts that construct Core without a window, do nothing. + if (main_window_) { + main_window_->statusBar()->showMessage(s, timeout); + } } void Core::ClearStatusBarMessage()