From 09172ddfa432ee4213fb85ef36b058b498ae9174 Mon Sep 17 00:00:00 2001 From: Tomaz Canabrava Date: Sun, 7 Jun 2015 09:39:33 -0300 Subject: 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 Signed-off-by: Dirk Hohndel --- qt-ui/locationinformation.cpp | 1 + 1 file changed, 1 insertion(+) (limited to 'qt-ui/locationinformation.cpp') 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); -- cgit v1.2.3-70-g09d2