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>
This commit is contained in:
parent
111968776f
commit
09172ddfa4
@ -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);
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user