summaryrefslogtreecommitdiffstats
path: root/qthelper.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'qthelper.cpp')
-rw-r--r--qthelper.cpp9
1 files changed, 8 insertions, 1 deletions
diff --git a/qthelper.cpp b/qthelper.cpp
index 7e4d64ec8..2f1f0416e 100644
--- a/qthelper.cpp
+++ b/qthelper.cpp
@@ -28,6 +28,7 @@
#include <QtConcurrent>
#include <QFont>
#include <QApplication>
+#include <QTextDocument>
#include <libxslt/documents.h>
@@ -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 = "--";
}