]> git.tdb.fi Git - ext/subsurface.git/commitdiff
Maintain selected rows when switching between list model and tree model
authorDirk Hohndel <dirk@hohndel.org>
Mon, 13 Aug 2012 21:53:07 +0000 (14:53 -0700)
committerDirk Hohndel <dirk@hohndel.org>
Tue, 14 Aug 2012 19:43:16 +0000 (12:43 -0700)
We keep track of the DIVE_INDEX of all selected dives and simply re-select
those dives after changing model (date based sort or sort by other
column).

There are a few TODOs left. We lose the sort direction (ascending /
descending) when switching models. We also don't correctly deal with the
user selecting summary rows in the tree model.

Signed-off-by: Dirk Hohndel <dirk@hohndel.org>

No differences found