diff options
author | Dirk Hohndel <dirk@hohndel.org> | 2012-12-28 06:36:47 -0800 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2012-12-28 06:36:47 -0800 |
commit | 3872921ffebe4a35ff62a7814b8293b0da8f5eae (patch) | |
tree | 798dbd46593cd0b400930b613cb0ecdf3bdf3694 /libdivecomputer.c | |
parent | f6fb8823378a692acec09926b5ab42b0561b17f2 (diff) | |
download | subsurface-3872921ffebe4a35ff62a7814b8293b0da8f5eae.tar.gz |
Divecomputer entries with deviceid 0 should be ignored for nicknames
Those only come from a number of development versions of Subsurface that
didn't include the deviceid in the divecomputer entry. There is no way of
telling different dive computers (of the same model) apart, so assigning a
nickname to such an entry then creates incorrect output when loading an
XML file from someone else (e.g. Linus and I both have a Uemis SDA and
both may have entries for our own SDA with deviceid 0; then the nickname
Subsurface shows for any Uemis SDA entry with a deviceid of 0 depends on
whether I last loaded his XML file or mine; that makes no sense).
This should only affect the develoers who stored XML files with one of the
development version of Subsurface that didn't store deviceids.
Reported-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