diff options
author | Dirk Hohndel <dirk@hohndel.org> | 2015-05-22 12:28:20 -0700 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2015-05-22 12:29:47 -0700 |
commit | e201f0f2b18066e369e0a43d6c6b2ff4ad5e8d33 (patch) | |
tree | 7c1959af202b1148d63cadce19638b3fddb553a7 /qt-ui/locationinformation.cpp | |
parent | d4b5854f82522b1920bbfbe9e094bfa4f0bb516f (diff) | |
download | subsurface-e201f0f2b18066e369e0a43d6c6b2ff4ad5e8d33.tar.gz |
Location management: reflect changes to a location's name
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'qt-ui/locationinformation.cpp')
-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() |