diff options
author | Linus Torvalds <torvalds@linux-foundation.org> | 2013-02-18 15:35:47 -0800 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2013-02-18 16:18:26 -0800 |
commit | 1e04e0806461899fa95e37e320b5f702a0d4185c (patch) | |
tree | b8e10b75b66f39407c036ce985cd19719919c847 /dive.h | |
parent | 866a9f0a0f215d4f596f029fa925e852eba3ce07 (diff) | |
download | subsurface-1e04e0806461899fa95e37e320b5f702a0d4185c.tar.gz |
When only a dive trip is selected, select all the dives in the trip
This does a final pass after all the selection logic, and notices if we
have dive trips that are selected, but that have no dives in them
selected. In that case, we assume that the user wanted to select all
dives in that trip.
NOTE! This still allows a range selection that selects the dive trip
entry and a few dives under the trip. If a trip has any dives selected
in it, we leave that manual selection alone. So this new logic really
only triggers on the case where somebody selected *just* the trip.
Note: unselecting the trip still leaves the dives under it selected,
because having a dive trip that isn't selected have all the dives under
it be selected is normal, and we can't recognize that as some kind of
special event.
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'dive.h')
-rw-r--r-- | dive.h | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -299,7 +299,7 @@ typedef struct dive_trip { struct dive *dives; int nrdives; int index; - unsigned expanded:1, selected:1, autogen:1; + unsigned expanded:1, selected:1, autogen:1, fixup:1; struct dive_trip *next; } dive_trip_t; |