Make sure to update dive info when it is edited

We used to not properly update the dive info until we switched to
another dive when we edited it.  This should fix it.

Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
This commit is contained in:
Linus Torvalds 2012-04-24 19:05:56 -07:00
parent 698892329a
commit 99708bb40e

2
info.c
View file

@ -352,7 +352,7 @@ static void save_dive_info_changes(struct dive *dive, struct dive_info *info)
if (changed) {
mark_divelist_changed(TRUE);
flush_divelist(dive);
update_dive(dive);
}
}