summaryrefslogtreecommitdiffstats
path: root/core/subsurface-qt
diff options
context:
space:
mode:
authorGravatar Dirk Hohndel <dirk@hohndel.org>2018-10-24 21:18:31 +0100
committerGravatar Dirk Hohndel <dirk@hohndel.org>2018-10-25 23:24:22 +0100
commit89a242976fc29ca974f5c3a390ce8519416ea718 (patch)
treefd4dd94736b0b0f2da65777c5599a8102a6a746e /core/subsurface-qt
parentf7b1c762a97dc5c886eef9fe780c8172d819c72c (diff)
downloadsubsurface-89a242976fc29ca974f5c3a390ce8519416ea718.tar.gz
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>
Diffstat (limited to 'core/subsurface-qt')
-rw-r--r--core/subsurface-qt/DiveObjectHelper.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/core/subsurface-qt/DiveObjectHelper.cpp b/core/subsurface-qt/DiveObjectHelper.cpp
index 5174b1a7e..d4b8e32cb 100644
--- a/core/subsurface-qt/DiveObjectHelper.cpp
+++ b/core/subsurface-qt/DiveObjectHelper.cpp
@@ -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");