mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
Core: replace tripflag by notrip boolean
The only remaining use of the tripflag was to mark dives that were removed explicitly from a trip, i.e. shouldn't be autogrouped. Therefore replace the enum by a simple boolean. Currently, there is no way of unsetting the notrip flag. But this shouldn't result in a user-visible change. Signed-off-by: Berthold Stoeger <bstoeger@mail.tuwien.ac.at>
This commit is contained in:
parent
3b9e0b5931
commit
6bf4120dbb
9 changed files with 13 additions and 28 deletions
|
|
@ -2564,10 +2564,9 @@ static void merge_temperatures(struct dive *res, const struct dive *a, const str
|
|||
*/
|
||||
static void pick_trip(struct dive *res, const struct dive *pick)
|
||||
{
|
||||
tripflag_t tripflag = pick->tripflag;
|
||||
dive_trip_t *trip = pick->divetrip;
|
||||
|
||||
res->tripflag = tripflag;
|
||||
res->notrip = pick->notrip;
|
||||
add_dive_to_trip(res, trip);
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue