From e201f0f2b18066e369e0a43d6c6b2ff4ad5e8d33 Mon Sep 17 00:00:00 2001 From: Dirk Hohndel Date: Fri, 22 May 2015 12:28:20 -0700 Subject: Location management: reflect changes to a location's name Signed-off-by: Dirk Hohndel --- qt-ui/locationinformation.cpp | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'qt-ui') 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() -- cgit v1.2.3-70-g09d2