summaryrefslogtreecommitdiffstats
path: root/core/gpslocation.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'core/gpslocation.cpp')
-rw-r--r--core/gpslocation.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/core/gpslocation.cpp b/core/gpslocation.cpp
index 188cfd81c..3c63d4dbd 100644
--- a/core/gpslocation.cpp
+++ b/core/gpslocation.cpp
@@ -213,7 +213,7 @@ static void copy_gps_location(struct gpsTracker &gps, struct dive *d)
struct dive_site *ds = d->dive_site;
if (!ds) {
ds = create_dive_site(qPrintable(gps.name), &dive_site_table);
- d->dive_site = ds;
+ add_dive_to_dive_site(d, ds);
}
ds->location = gps.location;
}