summaryrefslogtreecommitdiffstats
path: root/main.c
diff options
context:
space:
mode:
authorGravatar Linus Torvalds <torvalds@linux-foundation.org>2011-09-19 16:41:56 -0700
committerGravatar Linus Torvalds <torvalds@linux-foundation.org>2011-09-19 16:41:56 -0700
commit87e8ff9c3e16e2786a9ba9d551e52cd8b9dd9728 (patch)
treed1f03a840246adae27d1e48e42e008d3dc2dbd8f /main.c
parentdfacb5e124125e0e864509459d9ffef73495a3cd (diff)
downloadsubsurface-87e8ff9c3e16e2786a9ba9d551e52cd8b9dd9728.tar.gz
Update the divelist when dive info changes
This flushes the dive changes to the dive list, the way the old dive info frame would update as you update dive fields. Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'main.c')
-rw-r--r--main.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/main.c b/main.c
index 7c7ec8c3e..f91663276 100644
--- a/main.c
+++ b/main.c
@@ -98,6 +98,7 @@ void update_dive(struct dive *new_dive)
if (old_dive) {
flush_dive_info_changes(old_dive);
flush_dive_equipment_changes(old_dive);
+ flush_divelist(&dive_list, old_dive);
}
if (new_dive) {
show_dive_info(new_dive);