Don't merge manually added dives
If the user added a dive manually we have a hard time trusting the start time and duration. We just shouldn't automatically merge them with anything else. Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
parent
aedbde1e86
commit
ebc3b148db
5
dive.c
5
dive.c
@ -2230,6 +2230,11 @@ static int likely_same_dive(struct dive *a, struct dive *b)
|
|||||||
{
|
{
|
||||||
int match, fuzz = 20 * 60;
|
int match, fuzz = 20 * 60;
|
||||||
|
|
||||||
|
/* don't merge manually added dives with anything */
|
||||||
|
if (same_string(a->dc.model, "manually added dive") ||
|
||||||
|
same_string(b->dc.model, "manually added dive"))
|
||||||
|
return 0;
|
||||||
|
|
||||||
/* Don't try to merge dives with different trip information */
|
/* Don't try to merge dives with different trip information */
|
||||||
if (a->divetrip != b->divetrip) {
|
if (a->divetrip != b->divetrip) {
|
||||||
/*
|
/*
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user