From 7bbcf2fabd0d74d46dba1f3fad5a6d85c6f6eb1d Mon Sep 17 00:00:00 2001 From: Linus Torvalds Date: Wed, 7 Sep 2011 12:01:37 -0700 Subject: Update the dive units without destroyng and rebuilding the dive list Just iterate over the dive list entries, updating them one by one. This avoids the "selection destroyed" when the dive units are changed. And it's cleaner anyway. Signed-off-by: Linus Torvalds --- divelist.h | 1 + 1 file changed, 1 insertion(+) (limited to 'divelist.h') diff --git a/divelist.h b/divelist.h index da3bfc96b..2d6c5dce6 100644 --- a/divelist.h +++ b/divelist.h @@ -15,5 +15,6 @@ extern int selected_dive; extern struct DiveList dive_list_create(void); extern void dive_list_update_dives(struct DiveList); +extern void update_dive_list_units(struct DiveList *); #endif -- cgit v1.2.3-70-g09d2