summaryrefslogtreecommitdiffstats
path: root/divelist.h
diff options
context:
space:
mode:
authorGravatar Dirk Hohndel <dirk@hohndel.org>2013-09-24 03:42:40 -0700
committerGravatar Dirk Hohndel <dirk@hohndel.org>2013-09-24 03:42:40 -0700
commit446ab45858b509e56029e5c1557a12ca3680a674 (patch)
tree129888e7d75600c63bd43cbb099e5901549c9b9b /divelist.h
parent2d40172d78436b8aef3eab238faabe2ce3f9830f (diff)
downloadsubsurface-446ab45858b509e56029e5c1557a12ca3680a674.tar.gz
Only offer to merge dives if they are consecutive in the divelist
You cannot merge dives if there is another, unselected dive "between" them. Signed-off-by: Dirk Hohndel <dirk@hohndel.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 1485dd97b..af52a0368 100644
--- a/divelist.h
+++ b/divelist.h
@@ -44,6 +44,7 @@ extern void remove_dive_from_trip(struct dive *dive);
extern dive_trip_t *create_and_hookup_trip_from_dive(struct dive *dive);
extern void autogroup_dives(void);
extern struct dive *merge_two_dives(struct dive *a, struct dive *b);
+extern bool consecutive_selected();
extern void select_dive(int idx);
extern void deselect_dive(int idx);