summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--core/dive.h2
-rw-r--r--core/divelist.c1
2 files changed, 2 insertions, 1 deletions
diff --git a/core/dive.h b/core/dive.h
index 4f62c3e31..8415974e9 100644
--- a/core/dive.h
+++ b/core/dive.h
@@ -292,7 +292,7 @@ typedef struct dive_trip
char *location;
char *notes;
struct dive *dives;
- int nrdives;
+ int nrdives, showndives;
/* Used by the io-routines to mark trips that have already been written. */
bool saved;
unsigned expanded : 1, selected : 1, autogen : 1, fixup : 1;
diff --git a/core/divelist.c b/core/divelist.c
index 88cf5645d..d1d326209 100644
--- a/core/divelist.c
+++ b/core/divelist.c
@@ -891,6 +891,7 @@ void add_dive_to_trip(struct dive *dive, dive_trip_t *trip)
return;
remove_dive_from_trip(dive, false);
trip->nrdives++;
+ trip->showndives++;
dive->divetrip = trip;
dive->tripflag = ASSIGNED_TRIP;