summaryrefslogtreecommitdiffstats
path: root/libdivecomputer.c
diff options
context:
space:
mode:
authorGravatar Linus Torvalds <torvalds@linux-foundation.org>2013-01-22 16:57:07 -0800
committerGravatar Dirk Hohndel <dirk@hohndel.org>2013-01-22 20:15:06 -0800
commitacd6dff4a8ed7d309e81acb86ee8e1d46bf2767e (patch)
treea8dae67bd777ff2ab64c3072885bc9fd9b7bdc35 /libdivecomputer.c
parent20ad07d4ac82dbef90b3184a5eed9eec3cb8775f (diff)
downloadsubsurface-acd6dff4a8ed7d309e81acb86ee8e1d46bf2767e.tar.gz
Improve on the "prefer downloaded" dive computer model
It used to be that when you checked the "Prefer downloaded" checkmark, we'd throw away *any* old dive computer data. That was good, because it allowed us to start from a clean slate when you had some old subsurface data with questionable dive computer data. However, it was a bit extreme, and it's really not what you want if you already have (good) dive computer data from other dive computers. So this modifies the logic a bit. Instead of throwing away all old dive computer data, the "Prefer downloaded" checkmark now means: - the newly downloaded data becomes the "primary" dive computer data (ie the first in the list) - if there was old dive computer data that *could* have been from this new dive computer (ie it didn't have model information, or it had a matching model but no device ID data), we throw that away - but any existing dive computer data from other dive computers is left. This seems to be much closer to what we really would want for a new "preferred" download. Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org> Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'libdivecomputer.c')
0 files changed, 0 insertions, 0 deletions