summaryrefslogtreecommitdiffstats
path: root/divelist.h
diff options
context:
space:
mode:
authorGravatar Linus Torvalds <torvalds@linux-foundation.org>2011-09-07 12:01:37 -0700
committerGravatar Linus Torvalds <torvalds@linux-foundation.org>2011-09-07 12:05:44 -0700
commit7bbcf2fabd0d74d46dba1f3fad5a6d85c6f6eb1d (patch)
treec61f3f412fda9f1a1be08c09fcb601b72c85c78f /divelist.h
parent19dd61b1268cfef1526cb4195180e19276ea81b4 (diff)
downloadsubsurface-7bbcf2fabd0d74d46dba1f3fad5a6d85c6f6eb1d.tar.gz
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 <torvalds@linux-foundation.org>
Diffstat (limited to 'divelist.h')
-rw-r--r--divelist.h1
1 files changed, 1 insertions, 0 deletions
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