From 63629195ba27e3f716e6354971ce53c9cda95b43 Mon Sep 17 00:00:00 2001 From: Ralph Sennhauser Date: Tue, 14 Jul 2026 10:57:33 +0200 Subject: [PATCH] Wait for work to be finished before shutting down Stopping the timers isn't sufficient, also wait for in-flight work to be finished first. Signed-off-by: Ralph Sennhauser --- source/tools/atlas/AtlasUI/ScenarioEditor/ScenarioEditor.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/source/tools/atlas/AtlasUI/ScenarioEditor/ScenarioEditor.cpp b/source/tools/atlas/AtlasUI/ScenarioEditor/ScenarioEditor.cpp index b5e024d605..286497c878 100644 --- a/source/tools/atlas/AtlasUI/ScenarioEditor/ScenarioEditor.cpp +++ b/source/tools/atlas/AtlasUI/ScenarioEditor/ScenarioEditor.cpp @@ -693,6 +693,9 @@ void ScenarioEditor::OnClose(wxCloseEvent& event) m_Timer.Stop(); m_RenderTimer.Stop(); + // Wait for in-flight work to finish. + qPing qry; + qry.Post(); m_ToolManager.SetCurrentTool(_T(""));