mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
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:
parent
dfacb5e124
commit
87e8ff9c3e
3 changed files with 33 additions and 13 deletions
1
main.c
1
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);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue