mirror of
https://github.com/GoldenCheetah/GoldenCheetah.git
synced 2026-02-16 01:19:57 +00:00
Fix SEGV on close with TrainTool->Stop()
.. casting the sidebar in TrainView was wrong because the controls are in the sidebar, not the trainTool. Thus it would crash on exit .. but strangely only on Mac! .. the code now correctly calls trainTool->Stop(), quite why it fails on Mac only is a bit of a mystery.
This commit is contained in:
@@ -179,7 +179,7 @@ TrainView::~TrainView()
|
||||
void
|
||||
TrainView::close()
|
||||
{
|
||||
static_cast<TrainSidebar*>(sidebar())->Stop();
|
||||
trainTool->Stop();
|
||||
p->close();
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user