diff --git a/qthelper.cpp b/qthelper.cpp index 7e4d64ec8..2f1f0416e 100644 --- a/qthelper.cpp +++ b/qthelper.cpp @@ -28,6 +28,7 @@ #include #include #include +#include #include @@ -216,7 +217,13 @@ void Dive::put_temp() void Dive::put_notes() { - m_notes = QString::fromUtf8(dive->notes); + if (same_string(dive->dc.model, "planned dive")) { + QTextDocument notes; + notes.setHtml(QString::fromUtf8(dive->notes)); + m_notes = notes.toPlainText(); + } else { + m_notes = QString::fromUtf8(dive->notes); + } if (m_notes.isEmpty()) { m_notes = "--"; }