core: use nr of dives shown in tripMeta info
When creating a trip header (as it is used in the mobile app right now), we need to show the number of dives shown, not the total number of dives in that trip. Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
parent
f7b1c762a9
commit
89a242976f
@ -341,7 +341,7 @@ QString DiveObjectHelper::tripMeta() const
|
||||
QString ret = EMPTY_DIVE_STRING;
|
||||
struct dive_trip *dt = m_dive->divetrip;
|
||||
if (dt) {
|
||||
QString numDives = tr("(%n dive(s))", "", dt->nrdives);
|
||||
QString numDives = tr("(%n dive(s))", "", dt->showndives);
|
||||
QString title(dt->location);
|
||||
QDateTime firstTime = QDateTime::fromMSecsSinceEpoch(1000*dt->when, Qt::UTC);
|
||||
QString firstMonth = firstTime.toString("MMM");
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user