summaryrefslogtreecommitdiffstats
path: root/qt-ui/profile
diff options
context:
space:
mode:
authorGravatar Linus Torvalds <torvalds@linux-foundation.org>2014-10-21 08:45:09 -0700
committerGravatar Dirk Hohndel <dirk@hohndel.org>2014-10-21 09:54:31 -0700
commit0d30d2f064c77f4eb3420fd22dce513d42ccc9f3 (patch)
treea5077d7e8e9b4df61b0e1558b9add8bb46218bba /qt-ui/profile
parent856ec092b73acc8bc7942beb2e040647c848a354 (diff)
downloadsubsurface-0d30d2f064c77f4eb3420fd22dce513d42ccc9f3.tar.gz
Fix dc nickname helper function
This helper function is used to get a nickname for a dive computer, when the model information on its own may be ambiguous (ie there may be multiple dive computers of the same model, and we've nicknamed them by owner). However, the helper did completely the wrong thing if it didn't find a dive computer entry at all due to a missing device ID - it would just return empty. Which is bogus: it should return the model name, the same way it does if the nickname is missing. Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org> Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'qt-ui/profile')
0 files changed, 0 insertions, 0 deletions