mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
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:
parent
4f10f7f7ae
commit
a3af5331ea
1 changed files with 1 additions and 3 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Reference in a new issue