]> git.tdb.fi Git - ext/subsurface.git/commitdiff
Apply sort functions to the correct model, don't select summary entries
authorDirk Hohndel <dirk@hohndel.org>
Mon, 13 Aug 2012 22:07:38 +0000 (15:07 -0700)
committerDirk Hohndel <dirk@hohndel.org>
Tue, 14 Aug 2012 19:43:16 +0000 (12:43 -0700)
We only set up the column specific sort functions for the default (tree)
model, which caused us to not sort correctly in the list model.

This commit also somewhat cleans up the handling of selecting summary
lines in the tree model, which includes the very first selection made at
program start (which happens to be the very last dive).

But it still doesn't work the way I expect it to work (i.e., the correct
row is not highlighted). Fundamentally I would prefer clicks on the
summary lines to instead select (or as ctrl-click, possibly deselect) all
the dives under that summary entry. Still TODO.

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

No differences found