mirror of
https://github.com/GoldenCheetah/GoldenCheetah.git
synced 2026-02-15 00:49:55 +00:00
Show field name in Calendar Text when field type is not text
Fixes #1524
This commit is contained in:
@@ -618,8 +618,7 @@ RideFile *RideFileFactory::openRideFile(Context *context, QFile &file,
|
||||
QString calendarText;
|
||||
foreach (FieldDefinition field, context->athlete->rideMetadata()->getFields()) {
|
||||
if (field.diary == true && result->getTag(field.name, "") != "") {
|
||||
calendarText += QString("%1\n")
|
||||
.arg(result->getTag(field.name, ""));
|
||||
calendarText += field.calendarText(result->getTag(field.name, ""));
|
||||
}
|
||||
}
|
||||
result->setTag("Calendar Text", calendarText);
|
||||
|
||||
Reference in New Issue
Block a user