mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
Fix acceptChanges for add mode
We didn't save the uuid of the newly created dive site on the affected dive. Signed-off-by: Tomaz Canabrava <tomaz.canabrava@gmail.com> Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
parent
8ff7826302
commit
203c3e3077
1 changed files with 2 additions and 0 deletions
|
@ -87,6 +87,8 @@ void LocationInformationWidget::acceptChanges()
|
|||
free(currentDs->notes);
|
||||
currentDs->notes = copy_string(uiString);
|
||||
}
|
||||
if (current_mode == CREATE_DIVE_SITE)
|
||||
displayed_dive.dive_site_uuid = currentDs->uuid;
|
||||
if (dive_site_is_empty(currentDs)) {
|
||||
LocationInformationModel::instance()->removeRow(get_divesite_idx(currentDs));
|
||||
displayed_dive.dive_site_uuid = 0;
|
||||
|
|
Loading…
Add table
Reference in a new issue