summaryrefslogtreecommitdiffstats
path: root/qt-ui/maintab.cpp
diff options
context:
space:
mode:
authorGravatar Tomaz Canabrava <tomaz.canabrava@intel.com>2014-07-16 18:16:22 -0300
committerGravatar Dirk Hohndel <dirk@hohndel.org>2014-07-16 15:51:13 -0700
commitbf7fc97b50374a7b317d4d942dda2ff4e135f422 (patch)
treeb1a11e27380fb27f339ffe2275895bd68ea2abfd /qt-ui/maintab.cpp
parenta5c9bc1ef24ee9ffc527f0981a4ddb0f0f8fb2b1 (diff)
downloadsubsurface-bf7fc97b50374a7b317d4d942dda2ff4e135f422.tar.gz
Fix saving and storing the dive plan notes when there's html on it
We save an HTML table-based plan, so we need to get the text as html, not plaintext. Fixes #634 Signed-off-by: Tomaz Canabrava <tomaz.canabrava@intel.com> Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'qt-ui/maintab.cpp')
-rw-r--r--qt-ui/maintab.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/qt-ui/maintab.cpp b/qt-ui/maintab.cpp
index d94b37d07..439e114df 100644
--- a/qt-ui/maintab.cpp
+++ b/qt-ui/maintab.cpp
@@ -1002,7 +1002,7 @@ void MainTab::on_notes_textChanged()
if (editMode == IGNORE)
return;
free(displayed_dive.notes);
- displayed_dive.notes = strdup(ui.notes->toPlainText().toUtf8().data());
+ displayed_dive.notes = strdup(ui.notes->toHtml().toUtf8().data());
markChangedWidget(ui.notes);
}