diff --git a/src/Gui/LTMSidebar.cpp b/src/Gui/LTMSidebar.cpp index 999f58642..59f58ce72 100644 --- a/src/Gui/LTMSidebar.cpp +++ b/src/Gui/LTMSidebar.cpp @@ -400,7 +400,9 @@ LTMSidebar::dateRangeTreeWidgetSelectionChanged() // make sure they fit eventTree->header()->resizeSections(QHeaderView::ResizeToContents); - appsettings->setCValue(context->athlete->cyclist, GC_LTM_LAST_DATE_RANGE, dateRange->id().toString()); + + QString lastDateSel = phase ? phase->id().toString() : dateRange->id().toString(); + appsettings->setCValue(context->athlete->cyclist, GC_LTM_LAST_DATE_RANGE, lastDateSel); }