diff options
author | Berthold Stoeger <bstoeger@mail.tuwien.ac.at> | 2020-02-13 22:56:16 +0100 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2020-02-22 15:18:31 -0800 |
commit | a45c5faa8c7aab7d4263eb98d85d5e7cd589ef73 (patch) | |
tree | cafe98a1eafbcfa539be21b673be10976df77748 /commands | |
parent | be3d7bffc610a0e6e70cd00919197a0adf213d70 (diff) | |
download | subsurface-a45c5faa8c7aab7d4263eb98d85d5e7cd589ef73.tar.gz |
Filter: update current dive if change hides current dive
When changing the filter-criterion and the current dive is
hidden, a new dive is made current. However, when a dive is
hidden because it was edited, it is still shown.
Make this consistent by also selecing a new current dive
in the latter case. Do this by comparing the current_dive
before and after calculating the filter. Since this is now
done in multiple places move this code to the ShownChange
class.
Signed-off-by: Berthold Stoeger <bstoeger@mail.tuwien.ac.at>
Diffstat (limited to 'commands')
0 files changed, 0 insertions, 0 deletions