mirror of
https://github.com/GoldenCheetah/GoldenCheetah.git
synced 2026-02-13 16:18:42 +00:00
Ensure default sport for zones
This commit is contained in:
@@ -490,7 +490,11 @@ RideMetadata::sports()
|
||||
}
|
||||
|
||||
// Ensure default sport
|
||||
if (sportList.isEmpty()) sportList << "Bike";
|
||||
bool hasBike = false;
|
||||
foreach (QString sport, sportList) {
|
||||
if (RideFile::sportTag(sport) == "Bike") hasBike = true;
|
||||
}
|
||||
if (!hasBike) sportList.prepend("Bike");
|
||||
|
||||
return sportList;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user