mirror of
https://github.com/GoldenCheetah/GoldenCheetah.git
synced 2026-02-13 08:08:42 +00:00
Mini Calendar non analysis startup view fix (#4731)
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user