Fix Diary doesn't select ride on Mac

The metricDB columns are renamed to more friendly values
in RideNavigator, and the GcCalendarModel was looking for
a columns "Filename" when it was named "File".

This mean't the call to the model to retrieve the filename
when an entry was clicked on the table view (diary) would
return "".

Strangely, this worked fine on Linux. But it is definitely
a bug. This patch fixes that.

Fixes #330.
This commit is contained in:
Mark Liversedge
2011-08-04 23:34:29 +01:00
parent ebc0c5793e
commit da8e22a48b

View File

@@ -92,7 +92,7 @@ public slots:
columns << column;
if (column == tr("Duration")) durationIndex = i;
if (column == tr("Date")) dateIndex = i;
if (column == tr("Filename")) filenameIndex = i;
if (column == tr("File")) filenameIndex = i;
if (column == tr("Calendar Text")) textIndex = i;
}