Show field name in Calendar Text when field type is not text

Fixes #1524
This commit is contained in:
Alejandro Martinez
2015-08-19 21:26:28 -03:00
parent 90ac02e3c9
commit 4b2679cdf1
4 changed files with 22 additions and 5 deletions

View File

@@ -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);