mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
Associate existing dive site to current dive
If the dive site exists, we need to associate the uuid to current dive. Signed-off-by: Miika Turkia <miika.turkia@gmail.com> Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
parent
961bac9233
commit
92f514b081
1 changed files with 4 additions and 0 deletions
|
@ -1226,6 +1226,10 @@ static void add_dive_site(char *buffer, struct dive *dive)
|
|||
} else if (!same_string(ds->name, buffer)) {
|
||||
// coin toss, let's just keep the first name we found
|
||||
fprintf(stderr, "which means the dive already links to dive site of different name {%s} / {%s}\n", ds->name, buffer);
|
||||
} else {
|
||||
// add the existing dive site to the current dive
|
||||
fprintf(stderr, "we have an existing location, using {%s}\n", ds->name);
|
||||
dive->dive_site_uuid = uuid;
|
||||
}
|
||||
} else {
|
||||
fprintf(stderr, "no uuid, create new dive site with name {%s}\n", buffer);
|
||||
|
|
Loading…
Add table
Reference in a new issue