diff options
author | Dirk Hohndel <dirk@hohndel.org> | 2016-01-10 21:14:51 -0800 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2016-01-10 21:14:51 -0800 |
commit | a3af5331ea90d5d3c3cafaaf13a9a44739f975c1 (patch) | |
tree | 36e6ae8fa24c3b14c520fc7e5ddfa36f59a9fec5 /subsurface-core/subsurface-qt | |
parent | 4f10f7f7ae9b791f08cf97ec64f9a8a0468145c2 (diff) | |
download | subsurface-a3af5331ea90d5d3c3cafaaf13a9a44739f975c1.tar.gz |
Fix bug setting up DiveObjectHelper
Why would we bail there if the notes are empty?
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'subsurface-core/subsurface-qt')
-rw-r--r-- | subsurface-core/subsurface-qt/DiveObjectHelper.cpp | 4 |
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; |