mirror of
https://github.com/subsurface/subsurface.git
synced 2024-11-28 05:00:20 +00:00
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
1 changed files with 5 additions and 0 deletions
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;
|
||||
|
||||
/* 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 */
|
||||
if (a->divetrip != b->divetrip) {
|
||||
/*
|
||||
|
|
Loading…
Reference in a new issue