mirror of
https://github.com/subsurface/subsurface.git
synced 2025-01-31 20:13:23 +00:00
Avoid duplicate divesites on Liquivision import
Signed-off-by: Miika Turkia <miika.turkia@gmail.com> Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
parent
9bd683ef35
commit
6c0bcec3e7
1 changed files with 1 additions and 1 deletions
|
@ -149,7 +149,7 @@ static void parse_dives (int log_version, const unsigned char *buf, unsigned int
|
|||
|
||||
/* Store the location only if we have one */
|
||||
if (len || place_len) {
|
||||
dive->dive_site_uuid = create_dive_site(location);
|
||||
dive->dive_site_uuid = find_or_create_dive_site_with_name(location);
|
||||
free(location);
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue