Skip to content

Commit

Permalink
When removing an item from the collection view, we now unconditionall…
Browse files Browse the repository at this point in the history
…y unhighlight it.

We also reapply highlights after reloading finishes.

Closes cappuccino#248.
  • Loading branch information
Ross Boucher committed Jan 31, 2010
1 parent 1d9e2f8 commit 840e9c7
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion AppKit/CPCollectionView.j
Expand Up @@ -333,6 +333,8 @@
while (count--)
{
[[_items[count] view] removeFromSuperview];
[_items[count] setSelected:NO];

_cachedItems.push(_items[count]);
}

Expand All @@ -351,7 +353,11 @@

[self addSubview:[_items[index] view]];
}


index = CPNotFound;
while ((index = [_selectionIndexes indexGreaterThanIndex:index]) != CPNotFound)
[_items[index] setSelected:YES];

[self tile];
}

Expand Down

0 comments on commit 840e9c7

Please sign in to comment.