mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
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
1 changed files with 1 additions and 0 deletions
|
@ -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…
Add table
Reference in a new issue