From 89a242976fc29ca974f5c3a390ce8519416ea718 Mon Sep 17 00:00:00 2001 From: Dirk Hohndel Date: Wed, 24 Oct 2018 21:18:31 +0100 Subject: 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 --- core/subsurface-qt/DiveObjectHelper.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'core/subsurface-qt/DiveObjectHelper.cpp') 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"); -- cgit v1.2.3-70-g09d2