summaryrefslogtreecommitdiffstats
path: root/dive.h
diff options
context:
space:
mode:
authorGravatar Linus Torvalds <torvalds@linux-foundation.org>2012-09-07 15:38:32 -0700
committerGravatar Linus Torvalds <torvalds@linux-foundation.org>2012-09-07 15:38:32 -0700
commitf51066fe40cb8d0bf9b6130adc1c85af3934ffe7 (patch)
treed10c4e0f3baa27399ba4692c98cda1f6b0d9fdb2 /dive.h
parentb6812946319080699f6071656f09d402d23d3e46 (diff)
parentd0867a79d48d6fcb894ac7385fdfb2b7e599021f (diff)
downloadsubsurface-f51066fe40cb8d0bf9b6130adc1c85af3934ffe7.tar.gz
Merge branch 'trip3' of git://git.hohndel.org/subsurface
Pull more trip handling fixes from Dirk Hohndel. And the "delete dive" functionality too. * 'trip3' of git://git.hohndel.org/subsurface: Implement delete dive option Make "create trip above" also add on selected dives Handle new dives correctly if trips exist Merge one or more dives with the trip above
Diffstat (limited to 'dive.h')
-rw-r--r--dive.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/dive.h b/dive.h
index 29814c34e..42b5f771d 100644
--- a/dive.h
+++ b/dive.h
@@ -271,6 +271,7 @@ extern gboolean autogroup;
#define UNGROUPED_DIVE(_dive) ((_dive)->tripflag == NO_TRIP)
#define DIVE_IN_TRIP(_dive) ((_dive)->tripflag == IN_TRIP)
+#define DIVE_NEEDS_TRIP(_dive) ((_dive)->tripflag == TF_NONE)
#define NEXT_TRIP(_entry) ((_entry) ? g_list_next(_entry) : (dive_trip_list))
#define PREV_TRIP(_entry) ((_entry) ? g_list_previous(_entry) : g_list_last(dive_trip_list))
#define DIVE_TRIP(_trip) ((struct dive *)(_trip)->data)