aboutsummaryrefslogtreecommitdiffstats
path: root/info.c
diff options
context:
space:
mode:
authorGravatar Linus Torvalds <torvalds@linux-foundation.org>2012-04-24 19:05:56 -0700
committerGravatar Linus Torvalds <torvalds@linux-foundation.org>2012-04-24 19:05:56 -0700
commit99708bb40e2d0f0e1ddfa6ec56a192e3878d511b (patch)
tree4f3042f829566b3cf5946fca01d9e4534942e670 /info.c
parent698892329a3f981ff762300427bb43f34b553baf (diff)
downloadsubsurface-99708bb40e2d0f0e1ddfa6ec56a192e3878d511b.tar.gz
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>
Diffstat (limited to 'info.c')
-rw-r--r--info.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/info.c b/info.c
index f1afc0574..813d58adc 100644
--- 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);
}
}