mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
Helper function to determined planned dives
... to reduce code duplication. Signed-off-by: Robert C. Helling <helling@atdotde.de>
This commit is contained in:
parent
f1fc89b978
commit
c349692d98
4 changed files with 8 additions and 3 deletions
|
|
@ -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("<thead>", "<thead>" _NOTES_BR)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue