mirror of
https://github.com/GoldenCheetah/GoldenCheetah.git
synced 2026-02-14 16:39:57 +00:00
Minor Translation Related Fixes
"Metric Pace" translatable Format for time columns in Navigator
This commit is contained in:
@@ -91,7 +91,7 @@ RideCacheModel::data(const QModelIndex &index, int role) const
|
||||
// bit of a kludge, but will return stuff with no decimal places
|
||||
// as a number, but not if unit is seconds or high precision which means
|
||||
// metrics with high precision don't sort this is crap XXX
|
||||
if (m->units(true) != "km" && (m->units(true) == "seconds" || m->precision() > 0)) {
|
||||
if (m->units(true) != "km" && (m->isTime() || m->precision() > 0)) {
|
||||
m->setValue(rideCache->rides().at(index.row())->metrics_[m->index()]);
|
||||
return m->toString(context->athlete->useMetricUnits); // string
|
||||
} else {
|
||||
|
||||
Reference in New Issue
Block a user