diff --git a/src/LTMTool.cpp b/src/LTMTool.cpp index e5312082b..ec7a0a603 100644 --- a/src/LTMTool.cpp +++ b/src/LTMTool.cpp @@ -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