From b43723e8ff43eeaaa7aa6113bcc686b55942c06e Mon Sep 17 00:00:00 2001 From: Alejandro Martinez Date: Mon, 26 Sep 2022 21:35:23 -0300 Subject: [PATCH] Use default Overview configuration when replacing old Summary charts They are likely more useful for existing users and, hopefully, they will produce less user complains than blank Summary charts. --- src/Gui/GcWindowRegistry.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Gui/GcWindowRegistry.cpp b/src/Gui/GcWindowRegistry.cpp index 0c9ec1137..6df0e7ff6 100644 --- a/src/Gui/GcWindowRegistry.cpp +++ b/src/Gui/GcWindowRegistry.cpp @@ -240,14 +240,14 @@ GcWindowRegistry::newGcWindow(GcWinID id, Context *context) // summary and old ride summary charts now replaced with an Overview - note id gets reset case GcWindowTypes::Summary: case GcWindowTypes::RideSummary: - case GcWindowTypes::Overview: returning = new OverviewWindow(context, ANALYSIS); id=GcWindowTypes::Overview; break; + case GcWindowTypes::Overview: returning = new OverviewWindow(context, ANALYSIS); if (id != GcWindowTypes::Overview) { id=GcWindowTypes::Overview; static_cast(returning)->setConfiguration(""); } break; // blank analysis overview - note id gets reset case GcWindowTypes::OverviewAnalysisBlank: returning = new OverviewWindow(context, ANALYSIS, true); id=GcWindowTypes::Overview; break; // old summary now gets a trends overview - note id gets reset case GcWindowTypes::DateRangeSummary: // deprecated so now replace with overview - case GcWindowTypes::OverviewTrends: returning = new OverviewWindow(context, TRENDS); id=GcWindowTypes::OverviewTrends; break; + case GcWindowTypes::OverviewTrends: returning = new OverviewWindow(context, TRENDS); if (id != GcWindowTypes::OverviewTrends) { id=GcWindowTypes::OverviewTrends; static_cast(returning)->setConfiguration(""); } break; // blank trends overview - note id gets reset case GcWindowTypes::OverviewTrendsBlank: returning = new OverviewWindow(context, TRENDS, true); id=GcWindowTypes::OverviewTrends; break;