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>
This commit is contained in:
Linus Torvalds 2011-09-19 16:41:56 -07:00
parent dfacb5e124
commit 87e8ff9c3e
3 changed files with 33 additions and 13 deletions

1
main.c
View file

@ -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);