From f4bb99094dd3c4ac0956dee47b546c8372a51b2b Mon Sep 17 00:00:00 2001 From: Ralph Sennhauser Date: Sat, 11 Jul 2026 11:08:55 +0200 Subject: [PATCH] Stop timers on closing Atlas Otherwise we might try to render a view when half the infrastructure is already taken down, which results in segfaults or asserts. 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 b8a62dc97c..c0cbb52a2c 100644 --- a/source/tools/atlas/AtlasUI/ScenarioEditor/ScenarioEditor.cpp +++ b/source/tools/atlas/AtlasUI/ScenarioEditor/ScenarioEditor.cpp @@ -699,6 +699,9 @@ void ScenarioEditor::OnClose(wxCloseEvent& event) } } + m_Timer.Stop(); + m_RenderTimer.Stop(); + m_ToolManager.SetCurrentTool(_T("")); m_FileHistory.SaveToSubDir(*wxConfigBase::Get());