Show dive site name in dive list

Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
Dirk Hohndel 2015-02-12 12:54:20 -08:00
parent 7fb35c98d3
commit 8bea7cbdc7

View file

@ -1191,7 +1191,7 @@ QVariant DiveItem::data(int column, int role) const
retVal = dive->maxcns; retVal = dive->maxcns;
break; break;
case LOCATION: case LOCATION:
retVal = QString(dive->location); retVal = QString(get_dive_location(dive));
break; break;
} }
break; break;
@ -1232,7 +1232,7 @@ QVariant DiveItem::data(int column, int role) const
retVal = dive->maxcns; retVal = dive->maxcns;
break; break;
case LOCATION: case LOCATION:
retVal = QString(dive->location); retVal = QString(get_dive_location(dive));
break; break;
case GAS: case GAS:
const char *gas_string = get_dive_gas_string(dive); const char *gas_string = get_dive_gas_string(dive);
@ -2110,7 +2110,7 @@ QVariant ProfilePrintModel::data(const QModelIndex &index, int role) const
} }
if (row == 1) { if (row == 1) {
if (col == 0) if (col == 0)
return QString(dive->location); return QString(get_dive_location(dive));
if (col == 3) if (col == 3)
return QString(tr("Duration: %1 min")).arg(di.displayDuration()); return QString(tr("Duration: %1 min")).arg(di.displayDuration());
} }