mirror of
https://github.com/GoldenCheetah/GoldenCheetah.git
synced 2026-02-14 08:38:45 +00:00
UI Nits: LTM add chart use a default date range
When adding a chart to the home view no date range is set. This update ensures that the last selected date range is used, so when a chart is selected/configured some data will be shown.
This commit is contained in:
@@ -1272,7 +1272,8 @@ GcWindowDialog::GcWindowDialog(GcWinID type, MainWindow *mainWindow) : mainWindo
|
||||
|
||||
RideItem *notconst = (RideItem*)mainWindow->currentRideItem();
|
||||
win->setProperty("ride", QVariant::fromValue<RideItem*>(notconst));
|
||||
win->setProperty("dateRange", property("dateRange"));
|
||||
DateRange dr = mainWindow->currentDateRange();
|
||||
win->setProperty("dateRange", QVariant::fromValue<DateRange>(dr));
|
||||
|
||||
layout->setStretch(0, 100);
|
||||
layout->setStretch(1, 50);
|
||||
|
||||
Reference in New Issue
Block a user