summaryrefslogtreecommitdiffstats
path: root/qt-ui
diff options
context:
space:
mode:
authorGravatar Tomaz Canabrava <tomaz.canabrava@gmail.com>2015-06-07 09:39:33 -0300
committerGravatar Dirk Hohndel <dirk@hohndel.org>2015-06-07 08:04:37 -0700
commit09172ddfa432ee4213fb85ef36b058b498ae9174 (patch)
tree8e8bbb64066e81020772526721c7bc9e2478a741 /qt-ui
parent111968776fa913d06c7c59bfac283da9ab91fe26 (diff)
downloadsubsurface-09172ddfa432ee4213fb85ef36b058b498ae9174.tar.gz
Change the name of the dive site on the globe
The name of the dive site on the globe wasn't being updated when we changed the name of it in the dive management dialog. Signed-off-by: Tomaz Canabrava <tomaz.canabrava@gmail.com> Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'qt-ui')
-rw-r--r--qt-ui/locationinformation.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/qt-ui/locationinformation.cpp b/qt-ui/locationinformation.cpp
index d332218d8..0578d553f 100644
--- a/qt-ui/locationinformation.cpp
+++ b/qt-ui/locationinformation.cpp
@@ -204,6 +204,7 @@ void LocationInformationWidget::on_diveSiteName_textChanged(const QString& text)
if (ds->uuid == currentDs->uuid)
break;
+ displayed_dive_site.name = copy_string(qPrintable(text));
QModelIndex idx = LocationInformationModel::instance()->index(i,0);
LocationInformationModel::instance()->setData(idx, text, Qt::EditRole);
markChangedWidget(ui.diveSiteName);