Fix bug setting up DiveObjectHelper

Why would we bail there if the notes are empty?

Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
Dirk Hohndel 2016-01-10 21:14:51 -08:00
parent 4f10f7f7ae
commit a3af5331ea

View file

@ -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;