From 9fd87fa08081116ba12812ddea0a43be61019cbb Mon Sep 17 00:00:00 2001 From: Berthold Stoeger Date: Sat, 23 Feb 2019 22:09:34 +0100 Subject: Undo: update cylinder and weight models on paste When pasting (or undoing paste) the cylinders or weights may change. Send the appropriate signals and update the models accordingly. Currently, this means copying from current dive to displayed dive, but hopefully we can get rid of "displayed_dive" in the not so distant future. Signed-off-by: Berthold Stoeger --- core/dive.h | 1 + 1 file changed, 1 insertion(+) (limited to 'core/dive.h') diff --git a/core/dive.h b/core/dive.h index 06abc0df2..6e4940452 100644 --- a/core/dive.h +++ b/core/dive.h @@ -546,6 +546,7 @@ extern void copy_events(const struct divecomputer *s, struct divecomputer *d); extern void free_events(struct event *ev); extern void copy_cylinders(const struct dive *s, struct dive *d, bool used_only); extern void copy_samples(const struct divecomputer *s, struct divecomputer *d); +extern void copy_weights(const struct dive *s, struct dive *d); extern bool is_cylinder_used(const struct dive *dive, int idx); extern bool is_cylinder_prot(const struct dive *dive, int idx); extern void fill_default_cylinder(cylinder_t *cyl); -- cgit v1.2.3-70-g09d2