summaryrefslogtreecommitdiffstats
path: root/core/datatrak.c
diff options
context:
space:
mode:
authorGravatar Berthold Stoeger <bstoeger@mail.tuwien.ac.at>2018-10-28 14:33:16 +0100
committerGravatar Dirk Hohndel <dirk@hohndel.org>2018-10-28 15:10:57 +0000
commit323a71941d655916ac4a8d870fe59d160b4000da (patch)
tree64dace6de76b24f71ed210f4b0e5991a027c3473 /core/datatrak.c
parent139c749c90f299b8e23a3889142e33e3c187fafd (diff)
downloadsubsurface-323a71941d655916ac4a8d870fe59d160b4000da.tar.gz
Dive list: remember/restore selection only on view change
The selection was remembered/restored anytime the sort-order changed. Yet, this is only necessary if the view (tree, list) changes. Therefore, handle the selection only if this is the case. This automatically fixes the problem of the trip-selection not being remembered if the view doesn't change. If the view does change, trip selection is lost. But since the list view doesn't have trips to start with, losing trip-selection seems like an understandable behavior. Signed-off-by: Berthold Stoeger <bstoeger@mail.tuwien.ac.at>
Diffstat (limited to 'core/datatrak.c')
0 files changed, 0 insertions, 0 deletions