]> git.tdb.fi Git - ext/subsurface.git/commitdiff
Make sure to update dive info when it is edited
authorLinus Torvalds <torvalds@linux-foundation.org>
Wed, 25 Apr 2012 02:05:56 +0000 (19:05 -0700)
committerLinus Torvalds <torvalds@linux-foundation.org>
Wed, 25 Apr 2012 02:05:56 +0000 (19:05 -0700)
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>
info.c

diff --git a/info.c b/info.c
index f1afc0574eb36476a616d987e726a712cdf3918b..813d58adcfb0572dc88c278ca13820bd2e0380d3 100644 (file)
--- a/info.c
+++ b/info.c
@@ -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);
        }
 }