summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--subsurface-core/subsurface-qt/DiveObjectHelper.cpp4
1 files changed, 1 insertions, 3 deletions
diff --git a/subsurface-core/subsurface-qt/DiveObjectHelper.cpp b/subsurface-core/subsurface-qt/DiveObjectHelper.cpp
index 03e63786a..c82a4a96e 100644
--- a/subsurface-core/subsurface-qt/DiveObjectHelper.cpp
+++ b/subsurface-core/subsurface-qt/DiveObjectHelper.cpp
@@ -63,10 +63,8 @@ DiveObjectHelper::DiveObjectHelper(struct dive *d) :
}
m_notes = QString::fromUtf8(d->notes);
- if (m_notes.isEmpty()) {
+ if (m_notes.isEmpty())
m_notes = EMPTY_DIVE_STRING;
- return;
- }
if (same_string(d->dc.model, "planned dive")) {
QTextDocument notes;
QString notesFormatted = m_notes;