diff options
Diffstat (limited to 'core/subsurface-qt/DiveObjectHelper.cpp')
-rw-r--r-- | core/subsurface-qt/DiveObjectHelper.cpp | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/core/subsurface-qt/DiveObjectHelper.cpp b/core/subsurface-qt/DiveObjectHelper.cpp index 4c1c66e21..084da4fd3 100644 --- a/core/subsurface-qt/DiveObjectHelper.cpp +++ b/core/subsurface-qt/DiveObjectHelper.cpp @@ -360,6 +360,12 @@ QString DiveObjectHelper::tripMeta() const return ret; } +int DiveObjectHelper::tripNrDives() const +{ + struct dive_trip *dt = m_dive->divetrip; + return dt ? dt->nrdives : 0; +} + int DiveObjectHelper::maxcns() const { return m_dive->maxcns; |