summaryrefslogtreecommitdiffstats
path: root/core/subsurface-qt
diff options
context:
space:
mode:
authorGravatar Robert C. Helling <helling@atdotde.de>2019-01-01 18:02:04 +0100
committerGravatar Robert C. Helling <helling@atdotde.de>2019-01-08 10:39:06 +0100
commitc349692d984f417bf56f5fecb8f733d8fb007518 (patch)
treed66682b3d0426ad03bc9d53f6190c0023e0fd344 /core/subsurface-qt
parentf1fc89b978c178fcd0f4f3ddb7629dc7df0d939d (diff)
downloadsubsurface-c349692d984f417bf56f5fecb8f733d8fb007518.tar.gz
Helper function to determined planned dives
... to reduce code duplication. Signed-off-by: Robert C. Helling <helling@atdotde.de>
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 c85a3475e..0742e382f 100644
--- a/core/subsurface-qt/DiveObjectHelper.cpp
+++ b/core/subsurface-qt/DiveObjectHelper.cpp
@@ -169,7 +169,7 @@ QString DiveObjectHelper::waterTemp() const
QString DiveObjectHelper::notes() const
{
QString tmp = m_dive->notes ? QString::fromUtf8(m_dive->notes) : QString();
- if (same_string(m_dive->dc.model, "planned dive")) {
+ if (is_dc_planner(&m_dive->dc)) {
QTextDocument notes;
#define _NOTES_BR "&#92n"
tmp.replace("<thead>", "<thead>" _NOTES_BR)