]> git.tdb.fi Git - ext/subsurface.git/commit
Avoid changing selection status when collapsing/expanding groups
authorLinus Torvalds <torvalds@linux-foundation.org>
Mon, 20 Aug 2012 13:27:04 +0000 (06:27 -0700)
committerLinus Torvalds <torvalds@linux-foundation.org>
Mon, 20 Aug 2012 13:27:04 +0000 (06:27 -0700)
commit5322b4aac11d2a41247a5a86161c1eb7b7983bc2
treeba993d2964b8b68bfa45ea0684744981684db211
parent972669d6363c163ed6d3b737cbd6b1bd534f3d7b
Avoid changing selection status when collapsing/expanding groups

This tries to avoid the problem mentioned in commit972669d6363c ("Rework
dive selection logic"), where a selection of dives hidden by collapsing
the group gets forgotten about by gtk.  It does so by always marking the
group selected when it is collapsed with any selected children.

We also avoid selecting new children when a group is selected that
already has at least *some* children selected already.  This way we do
minimal damage to existing selections when working with dive group
selections.

Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
divelist.c