mirror of
https://github.com/subsurface/subsurface.git
synced 2024-11-30 22:20:21 +00:00
parser: allow import of dive sites without UUID
Fixes #3493. Signed-off-by: Berthold Stoeger <bstoeger@mail.tuwien.ac.at>
This commit is contained in:
parent
aa4b48f440
commit
6d77d814a8
2 changed files with 7 additions and 6 deletions
|
@ -1,3 +1,4 @@
|
|||
import: allow import of divesites without UUID
|
||||
divelist: do not include planned versions of a dive if there is real data
|
||||
desktop: fix key composition in tag widgets and dive site widget
|
||||
mobile: send log files as attachments for support emails on iOS
|
||||
|
|
|
@ -247,13 +247,13 @@ void dive_site_end(struct parser_state *state)
|
|||
{
|
||||
if (!state->cur_dive_site)
|
||||
return;
|
||||
if (state->cur_dive_site->uuid) {
|
||||
|
||||
struct dive_site *ds = alloc_or_get_dive_site(state->cur_dive_site->uuid, state->sites);
|
||||
merge_dive_site(ds, state->cur_dive_site);
|
||||
|
||||
if (verbose > 3)
|
||||
printf("completed dive site uuid %x8 name {%s}\n", ds->uuid, ds->name);
|
||||
}
|
||||
|
||||
free_dive_site(state->cur_dive_site);
|
||||
state->cur_dive_site = NULL;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue