From a3af5331ea90d5d3c3cafaaf13a9a44739f975c1 Mon Sep 17 00:00:00 2001 From: Dirk Hohndel Date: Sun, 10 Jan 2016 21:14:51 -0800 Subject: Fix bug setting up DiveObjectHelper Why would we bail there if the notes are empty? Signed-off-by: Dirk Hohndel --- subsurface-core/subsurface-qt/DiveObjectHelper.cpp | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'subsurface-core') 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; -- cgit v1.2.3-70-g09d2