summaryrefslogtreecommitdiffstats
path: root/divelist.h
diff options
context:
space:
mode:
authorGravatar Dirk Hohndel <dirk@hohndel.org>2013-01-13 20:41:48 -0800
committerGravatar Dirk Hohndel <dirk@hohndel.org>2013-01-13 21:01:52 -0800
commit1ea445102ed34b704345b4fd3b0ac00fa8380b06 (patch)
treeec692c631c9338bdf7bc7bd85a4470ce58bff239 /divelist.h
parentc8a99864512eebeb705b495c7aba4da1ff8a5816 (diff)
downloadsubsurface-1ea445102ed34b704345b4fd3b0ac00fa8380b06.tar.gz
Correctly show the planned dive in the divelist
Previously we would simply show the first dive in the divelist - which worked fine in the default sort by trip setting and assuming that there are no dives from the future in the divelist. With this commit we actually find the correct dive in the divelist and select it instead. If you sort by depth you will see the dive move around in the divelist, but it will stay selected and visible in the profile. Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'divelist.h')
-rw-r--r--divelist.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/divelist.h b/divelist.h
index 89762187b..0896af46c 100644
--- a/divelist.h
+++ b/divelist.h
@@ -15,6 +15,6 @@ extern void remember_tree_state(void);
extern void restore_tree_state(void);
extern void select_next_dive(void);
extern void select_prev_dive(void);
-extern void select_last_dive(void);
+extern void show_and_select_dive(struct dive *dive);
extern double init_decompression(struct dive * dive);
#endif