From 39c135a29bc0a49561eb85537bd1979bec49750a Mon Sep 17 00:00:00 2001 From: Mark Liversedge Date: Thu, 19 Aug 2021 18:49:14 +0100 Subject: [PATCH] Avoid translations in DataFilter expressions .. as reported on the forums, translations can rename metric names inadvertently. We avoid this by using the untranslated names in datafilter expressions. --- src/Core/DataFilter.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/Core/DataFilter.cpp b/src/Core/DataFilter.cpp index 07d2da1187..a36b5b1f2b 100644 --- a/src/Core/DataFilter.cpp +++ b/src/Core/DataFilter.cpp @@ -3101,8 +3101,7 @@ void DataFilter::configChanged(qint32) const RideMetricFactory &factory = RideMetricFactory::instance(); for (int i=0; ispecialFields.internalName(factory.rideMetric(symbol)->name()); - + QString name = factory.rideMetric(symbol)->internalName(); rt.lookupMap.insert(name.replace(" ","_"), symbol); rt.lookupType.insert(name.replace(" ","_"), true); }