Mini Calendar non analysis startup view fix (#4731)

This commit is contained in:
Paul Johnson
2025-11-10 12:11:38 +00:00
committed by GitHub
parent 81a4a2da24
commit d12f14f4a4

View File

@@ -68,11 +68,11 @@ AnalysisView::~AnalysisView()
void
AnalysisView::setRide(RideItem *ride)
{
if (!loaded) return; // not loaded yet, all bets are off till then.
// when ride selected, but not from the sidebar.
static_cast<AnalysisSidebar*>(sidebar())->setRide(ride); // save settings
if (!loaded) return; // not loaded yet, all bets are off until the perspectives are loaded.
// if we are the current view and the current perspective is no longer relevant
// then lets go find one to switch to..
if (context->mainWindow->athleteTab()->currentView() == 1 && page()->relevant(ride) != true) {