mirror of
https://github.com/subsurface/subsurface.git
synced 2024-11-27 20:58:47 +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
|
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
|
desktop: fix key composition in tag widgets and dive site widget
|
||||||
mobile: send log files as attachments for support emails on iOS
|
mobile: send log files as attachments for support emails on iOS
|
||||||
|
|
12
core/parse.c
12
core/parse.c
|
@ -247,13 +247,13 @@ void dive_site_end(struct parser_state *state)
|
||||||
{
|
{
|
||||||
if (!state->cur_dive_site)
|
if (!state->cur_dive_site)
|
||||||
return;
|
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)
|
struct dive_site *ds = alloc_or_get_dive_site(state->cur_dive_site->uuid, state->sites);
|
||||||
printf("completed dive site uuid %x8 name {%s}\n", ds->uuid, ds->name);
|
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);
|
free_dive_site(state->cur_dive_site);
|
||||||
state->cur_dive_site = NULL;
|
state->cur_dive_site = NULL;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue