From 31f1af07c23ef5c47dff1b88b5e70e75b95ce2ad Mon Sep 17 00:00:00 2001 From: Berthold Stoeger Date: Sun, 9 Sep 2018 22:49:57 +0200 Subject: Planner: fix display of "overlapping dives" message 1) Add a missing
2) More importantly: recognize html content via
-tags instead of -tags. Signed-off-by: Berthold Stoeger --- desktop-widgets/tab-widgets/maintab.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'desktop-widgets/tab-widgets') diff --git a/desktop-widgets/tab-widgets/maintab.cpp b/desktop-widgets/tab-widgets/maintab.cpp index cb186db02..7112458f1 100644 --- a/desktop-widgets/tab-widgets/maintab.cpp +++ b/desktop-widgets/tab-widgets/maintab.cpp @@ -433,7 +433,7 @@ void MainTab::updateDiveInfo(bool clear) ui.notes->setText(QString()); if (!clear) { QString tmp(displayed_dive.notes); - if (tmp.indexOf("")); ui.notes->setHtml(tmp); } else { @@ -1427,7 +1427,7 @@ void MainTab::on_notes_textChanged() if (same_string(displayed_dive.notes, qPrintable(ui.notes->toPlainText()))) return; free(displayed_dive.notes); - if (ui.notes->toHtml().indexOf("toHtml().indexOf("toHtml()); else displayed_dive.notes = copy_qstring(ui.notes->toPlainText()); @@ -1512,7 +1512,7 @@ void MainTab::showAndTriggerEditSelective(struct dive_components what) SHOW_SELECTIVE(suit); if (what.notes) { QString tmp(displayed_dive.notes); - if (tmp.contains("")); ui.notes->setHtml(tmp); } else { -- cgit v1.2.3-70-g09d2