From c349692d984f417bf56f5fecb8f733d8fb007518 Mon Sep 17 00:00:00 2001 From: "Robert C. Helling" Date: Tue, 1 Jan 2019 18:02:04 +0100 Subject: Helper function to determined planned dives ... to reduce code duplication. Signed-off-by: Robert C. Helling --- core/subsurface-qt/DiveObjectHelper.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'core/subsurface-qt') 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 "\n" tmp.replace("", "" _NOTES_BR) -- cgit v1.2.3-70-g09d2