aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar Miika Turkia <miika.turkia@gmail.com>2015-08-19 20:12:17 +0300
committerGravatar Dirk Hohndel <dirk@hohndel.org>2015-08-19 10:14:56 -0700
commit6c0bcec3e78b6b8f9775a12f7e369d62bcf16a71 (patch)
treec87e6c2e0616a12161df6c58e16821e0224223de
parent9bd683ef351a8ab4522a56f173c39d70e41ed697 (diff)
downloadsubsurface-6c0bcec3e78b6b8f9775a12f7e369d62bcf16a71.tar.gz
Avoid duplicate divesites on Liquivision import
Signed-off-by: Miika Turkia <miika.turkia@gmail.com> Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
-rw-r--r--liquivision.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/liquivision.c b/liquivision.c
index 91e0277fb..add377237 100644
--- a/liquivision.c
+++ b/liquivision.c
@@ -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);
}