diff options
author | Linus Torvalds <torvalds@linux-foundation.org> | 2015-01-02 22:09:01 -0800 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2015-01-02 22:43:21 -0800 |
commit | 9a4cafd0f10b36fd25bda6ce67106557f389dcff (patch) | |
tree | 1620fe5202ac6abad1ecd93c17a73461dcb810d9 /qt-ui/profile/divetooltipitem.h | |
parent | c2b076548d9dcf0dc71c34e416214604eb76e7f9 (diff) | |
download | subsurface-9a4cafd0f10b36fd25bda6ce67106557f389dcff.tar.gz |
Fix gaschange tooltip information
The code tried to look up the cylinder index from the Qt data models,
which was not only horribly confusing, but was also buggy. I think the
index ends up being off by one when the first cylinder change is hidden
(because it's at the beginning of the dive), but I can't make heads or
tails of that crazy code, so there might be something else going on.
Just remove all the crazy code, and use the event data directly. Which
gas the gasmix and the (potential) explicit cylinder index already.
It's much more straightforward, and it just automatically gets the right
end result whether some other event is hidden or not.
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'qt-ui/profile/divetooltipitem.h')
0 files changed, 0 insertions, 0 deletions