mirror of
https://github.com/GoldenCheetah/GoldenCheetah.git
synced 2026-02-13 16:18:42 +00:00
Fix SEGV when old charts.xml present
.. because there will be ZERO presets !
This commit is contained in:
@@ -1113,7 +1113,10 @@ LTMTool::presetsChanged()
|
||||
add->setFlags(add->flags() | Qt::ItemIsEditable);
|
||||
add->setText(0, chart.name);
|
||||
}
|
||||
charts->setCurrentItem(charts->invisibleRootItem()->child(0));
|
||||
|
||||
// select the first one, if there are any
|
||||
if (context->athlete->presets.count())
|
||||
charts->setCurrentItem(charts->invisibleRootItem()->child(0));
|
||||
}
|
||||
|
||||
void
|
||||
|
||||
Reference in New Issue
Block a user