diff options
Diffstat (limited to 'qt-ui/maintab.cpp')
-rw-r--r-- | qt-ui/maintab.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/qt-ui/maintab.cpp b/qt-ui/maintab.cpp index c247b77d0..5fc0eb0ad 100644 --- a/qt-ui/maintab.cpp +++ b/qt-ui/maintab.cpp @@ -1159,9 +1159,13 @@ void MainTab::on_notes_textChanged() if (editMode == IGNORE || acceptingEdit == true) return; if (currentTrip) { + if (same_string(displayedTrip.notes, ui.notes->toPlainText().toUtf8().data())) + return; free(displayedTrip.notes); displayedTrip.notes = strdup(ui.notes->toPlainText().toUtf8().data()); } else { + if (same_string(displayed_dive.notes, ui.notes->toPlainText().toUtf8().data())) + return; free(displayed_dive.notes); if (ui.notes->toHtml().indexOf("<table") != -1) displayed_dive.notes = strdup(ui.notes->toHtml().toUtf8().data()); |