diff options
author | Berthold Stoeger <bstoeger@mail.tuwien.ac.at> | 2018-10-15 23:12:13 +0200 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2018-10-15 20:57:10 -0400 |
commit | 0e00d40ead4c8a87a0dbc685db4efda2b9d2205c (patch) | |
tree | 81bd0997f967b8f67fc6a2fad73c927e6666ba37 /profile-widget/animationfunctions.cpp | |
parent | 3c1002d7ef83a67db89d52dd7c58b267b3870dc3 (diff) | |
download | subsurface-0e00d40ead4c8a87a0dbc685db4efda2b9d2205c.tar.gz |
Selection: always make newly selected dive the current dive
In select_dive(), the selected dive would only be made the
current dive, if it wasn't previously selected. If multiple
dives were selected and the user clicked on one of them which
is not the current dive, then the current dive would be
deselected and thus not be the current dive anymore. The
only remaining dive would not be made the current dive,
because it was already selected. End result: null dive shown.
Therefore, always make the selected dive the current dive,
even if it is already selected.
Fixes #1792
Reported-by: Jan Mulder <jlmulder@xs4all.nl>
Signed-off-by: Berthold Stoeger <bstoeger@mail.tuwien.ac.at>
Diffstat (limited to 'profile-widget/animationfunctions.cpp')
0 files changed, 0 insertions, 0 deletions