From 8815f77ea086ba474df051144098b80739a0f3ae Mon Sep 17 00:00:00 2001 From: Berthold Stoeger Date: Sat, 13 Oct 2018 11:52:59 +0200 Subject: Dive site: use own copy of taxonomy in dive-site-edit widget The dive-site-edit widget uses a copy of the to-be-edited site to compare with old values. Generally, this seems overkill (the original dive-site can be used for such a comparison). But one place where it can't simply be removed is the taxonomy, because the widget needs a place to store the unsaved data. Change the code to use an explicit taxonomy structure instead of the one provided in the copy. This should ultimately allow removal of the latter. Signed-off-by: Berthold Stoeger --- core/divesite.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'core/divesite.h') diff --git a/core/divesite.h b/core/divesite.h index 5b6943c73..b38ef5c28 100644 --- a/core/divesite.h +++ b/core/divesite.h @@ -75,7 +75,7 @@ void merge_dive_sites(uint32_t ref, uint32_t *uuids, int count); #ifdef __cplusplus } -QString constructLocationTags(struct dive_site *ds, bool for_maintab); +QString constructLocationTags(struct taxonomy_data *taxonomy, bool for_maintab); #endif -- cgit v1.2.3-70-g09d2