Defaults are duplicates when both field and value match

Fixes #3610
This commit is contained in:
Ale Martinez
2020-11-12 14:44:33 -03:00
parent aaa7889172
commit a107a0203c

View File

@@ -316,7 +316,7 @@ RideMetadata::configChanged(qint32)
bool found=false;
foreach(DefaultDefinition e, defaultDefinitions) {
if (e.field == x.field) found=true;
if (e.field == x.field && e.value == x.value) found=true;
}
if (!found) {
defaultDefinitions.append(x);