]> git.tdb.fi Git - ext/subsurface.git/commit
Improve group selection semantics
authorLinus Torvalds <torvalds@linux-foundation.org>
Mon, 20 Aug 2012 13:45:56 +0000 (06:45 -0700)
committerLinus Torvalds <torvalds@linux-foundation.org>
Mon, 20 Aug 2012 13:45:56 +0000 (06:45 -0700)
commit5726a50d89d1f76b6bc2cfb96568d41d27f2b63e
treee192e1d6af12846aa977286491e2096fec2aa4c9
parent5322b4aac11d2a41247a5a86161c1eb7b7983bc2
Improve group selection semantics

Now that the last commit tried to avoid changing the child selections if
the selected group partially matched, we should always [un]select all
children when we actually decide to change something.

Before, it would try to minimize selection damage by stopping
[un]selecting when it hit a child that already matched the selection,
but since we minimize damage differently, the all-or-nothing approach is
better, and gets us sane behavior when the group is collapsed.

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