mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
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
1 changed files with 1 additions and 1 deletions
|
@ -341,7 +341,7 @@ QString DiveObjectHelper::tripMeta() const
|
||||||
QString ret = EMPTY_DIVE_STRING;
|
QString ret = EMPTY_DIVE_STRING;
|
||||||
struct dive_trip *dt = m_dive->divetrip;
|
struct dive_trip *dt = m_dive->divetrip;
|
||||||
if (dt) {
|
if (dt) {
|
||||||
QString numDives = tr("(%n dive(s))", "", dt->nrdives);
|
QString numDives = tr("(%n dive(s))", "", dt->showndives);
|
||||||
QString title(dt->location);
|
QString title(dt->location);
|
||||||
QDateTime firstTime = QDateTime::fromMSecsSinceEpoch(1000*dt->when, Qt::UTC);
|
QDateTime firstTime = QDateTime::fromMSecsSinceEpoch(1000*dt->when, Qt::UTC);
|
||||||
QString firstMonth = firstTime.toString("MMM");
|
QString firstMonth = firstTime.toString("MMM");
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue