Permalink
Browse files

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>
  • Loading branch information...
torvalds committed Apr 25, 2012
1 parent 6988923 commit 99708bb40e2d0f0e1ddfa6ec56a192e3878d511b
Showing with 1 addition and 1 deletion.
  1. +1 −1 info.c
View
2 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);
}
}

0 comments on commit 99708bb

Please sign in to comment.