summaryrefslogtreecommitdiffstats
path: root/core/divelist.c
diff options
context:
space:
mode:
authorGravatar Berthold Stoeger <bstoeger@mail.tuwien.ac.at>2018-12-08 21:15:59 +0100
committerGravatar Dirk Hohndel <dirk@hohndel.org>2018-12-14 00:09:05 +0800
commit2706fa7b8e53438ba101fbe638eff150c8d2d154 (patch)
tree549cde86dad51d2c2b23640fcaee7a089130d0eb /core/divelist.c
parent3cdc2661d2a2417e557042abe1a0d9e5107822eb (diff)
downloadsubsurface-2706fa7b8e53438ba101fbe638eff150c8d2d154.tar.gz
Dive list: remove trip from model only once
In moveDivesBetweenTrips() a the model is informed of dives that are moved between trips. A flag tells the model to delete empty trips. If dives were removed in batches [use case: split a big trip into multiple smaller trips] the flag would be sent for every batch. This was handled gracefully by the model code, but it gave a warning message. Set the flag only for the last batch, when the trip is *really* empty. Signed-off-by: Berthold Stoeger <bstoeger@mail.tuwien.ac.at>
Diffstat (limited to 'core/divelist.c')
0 files changed, 0 insertions, 0 deletions