summaryrefslogtreecommitdiffstats
path: root/commands
diff options
context:
space:
mode:
authorGravatar Berthold Stoeger <bstoeger@mail.tuwien.ac.at>2020-02-13 22:56:16 +0100
committerGravatar Dirk Hohndel <dirk@hohndel.org>2020-02-22 15:18:31 -0800
commita45c5faa8c7aab7d4263eb98d85d5e7cd589ef73 (patch)
treecafe98a1eafbcfa539be21b673be10976df77748 /commands
parentbe3d7bffc610a0e6e70cd00919197a0adf213d70 (diff)
downloadsubsurface-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