From a1bc5ad4d39c4d39f508e24f80e36de03eb87f33 Mon Sep 17 00:00:00 2001 From: Alexander Ljungberg Date: Fri, 17 Feb 2012 14:23:21 +0000 Subject: [PATCH] Fixed: app would freeze on collection view setSelectionIndexes:nil. --- AppKit/CPCollectionView.j | 2 ++ 1 file changed, 2 insertions(+) diff --git a/AppKit/CPCollectionView.j b/AppKit/CPCollectionView.j index 014bce090..4a0b353a6 100644 --- a/AppKit/CPCollectionView.j +++ b/AppKit/CPCollectionView.j @@ -340,6 +340,8 @@ */ - (void)setSelectionIndexes:(CPIndexSet)anIndexSet { + if (!anIndexSet) + anIndexSet = [CPIndexSet indexSet]; if (!_isSelectable || [_selectionIndexes isEqual:anIndexSet]) return;