mirror of
https://github.com/subsurface/subsurface.git
synced 2025-01-19 14:25:27 +00:00
Cobalt import: use find or create divesite
Signed-off-by: Miika Turkia <miika.turkia@gmail.com> Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
parent
c2b45ab1e2
commit
0d2d91a28c
1 changed files with 1 additions and 1 deletions
|
@ -2691,7 +2691,7 @@ extern int cobalt_location(void *handle, int columns, char **data, char **column
|
|||
sprintf(tmp, "%s / %s", location, data[0]);
|
||||
free(location);
|
||||
location = NULL;
|
||||
cur_dive->dive_site_uuid = create_dive_site(tmp);
|
||||
cur_dive->dive_site_uuid = find_or_create_dive_site_with_name(tmp);
|
||||
free(tmp);
|
||||
} else {
|
||||
location = strdup(data[0]);
|
||||
|
|
Loading…
Add table
Reference in a new issue