mirror of
https://github.com/GoldenCheetah/GoldenCheetah.git
synced 2026-04-15 05:32:21 +00:00
Fix Summary SEGV no summary metrics and dirty file
If you clear all summary metrics and update the activity ride summary will crash looking up a metric with name "" which does not exist. Fixes #449.
This commit is contained in:
@@ -225,7 +225,8 @@ RideSummaryWindow::htmlSummary() const
|
||||
// go calculate them then...
|
||||
QHash<QString, RideMetricPtr> computed = RideMetric::computeMetrics(mainWindow, ride, mainWindow->zones(), mainWindow->hrZones(), worklist);
|
||||
for(int i = 0; i < worklist.count(); ++i) {
|
||||
metrics.setForSymbol(worklist[i], computed.value(worklist[i])->value(true));
|
||||
if (worklist[i] != "")
|
||||
metrics.setForSymbol(worklist[i], computed.value(worklist[i])->value(true));
|
||||
}
|
||||
} else {
|
||||
|
||||
|
||||
Reference in New Issue
Block a user