Minor Translation Related Fixes

"Metric Pace" translatable
Format for time columns in Navigator
This commit is contained in:
Alejandro Martinez
2015-07-15 09:20:32 -03:00
parent 7c5a17a934
commit d4b222efac
3 changed files with 7 additions and 2 deletions

View File

@@ -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 {