diff options
author | Berthold Stoeger <bstoeger@mail.tuwien.ac.at> | 2019-03-03 18:39:12 +0100 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2019-04-12 18:19:07 +0300 |
commit | 31291b1c56bf418732cf6ef52550aada492eff9b (patch) | |
tree | 4ff9e70839ced99fab1d13b7a38d43ece8171f4f /core/import-cobalt.c | |
parent | ac1602f5125caae322e3e819a7c622b0be9feca1 (diff) | |
download | subsurface-31291b1c56bf418732cf6ef52550aada492eff9b.tar.gz |
Dive site: set UUID only on save or load
Since the UUID will be overwritten on save and is only used on save
and load, set it only on save or load. For other created dive sites,
leave the UUID field uninitialized.
This means that the UUID will change between saves. Let's see how
the git saver handles that.
Signed-off-by: Berthold Stoeger <bstoeger@mail.tuwien.ac.at>
Diffstat (limited to 'core/import-cobalt.c')
-rw-r--r-- | core/import-cobalt.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/core/import-cobalt.c b/core/import-cobalt.c index 0836a9c00..ce5048244 100644 --- a/core/import-cobalt.c +++ b/core/import-cobalt.c @@ -197,7 +197,7 @@ static int cobalt_dive(void *param, int columns, char **data, char **column) return 1; } sprintf(tmp, "%s / %s", location, location_site); - state->cur_dive->dive_site = find_or_create_dive_site_with_name(tmp, state->cur_dive->when, state->sites); + state->cur_dive->dive_site = find_or_create_dive_site_with_name(tmp, state->sites); free(tmp); } free(location); |