diff options
-rw-r--r-- | qt-ui/locationinformation.cpp | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/qt-ui/locationinformation.cpp b/qt-ui/locationinformation.cpp index 73c8767e8..de7899167 100644 --- a/qt-ui/locationinformation.cpp +++ b/qt-ui/locationinformation.cpp @@ -233,8 +233,12 @@ void LocationInformationWidget::on_diveSiteDescription_textChanged(const QString void LocationInformationWidget::on_diveSiteName_textChanged(const QString& text) { - if (!same_string(qPrintable(text), currentDs->name)) + if (!same_string(qPrintable(text), currentDs->name)) { + free(displayed_dive_site.name); + displayed_dive_site.name = copy_string(qPrintable(text)); markChangedWidget(ui.diveSiteName); + emit coordinatesChanged(); + } } void LocationInformationWidget::on_diveSiteNotes_textChanged() |