mirror of
https://github.com/subsurface/subsurface.git
synced 2025-01-31 20:33:24 +00:00
Divinglog import: find or create divesite
We obviously should lookup if the dive site already exist before creating a new one. Signed-off-by: Miika Turkia <miika.turkia@gmail.com> Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
parent
a05e37188b
commit
c2b45ab1e2
1 changed files with 1 additions and 1 deletions
|
@ -3100,7 +3100,7 @@ extern int divinglog_dive(void *param, int columns, char **data, char **column)
|
|||
cur_dive->when = (time_t)(atol(data[1]));
|
||||
|
||||
if (data[2])
|
||||
cur_dive->dive_site_uuid = create_dive_site(data[2]);
|
||||
cur_dive->dive_site_uuid = find_or_create_dive_site_with_name(data[2]);
|
||||
|
||||
if (data[3])
|
||||
utf8_string(data[3], &cur_dive->buddy);
|
||||
|
|
Loading…
Add table
Reference in a new issue