mirror of
https://github.com/cappuccino/cappuccino.git
synced 2026-10-17 22:11:18 +00:00
Fixed: variable move in previous commit broke selection notifications.
This commit is contained in:
1 parent
2da6c88fad
commit
f3f1f72ae2
1 file changed
+3
-3
@@ -2381,14 +2381,14 @@ NOT YET IMPLEMENTED
|
||||
|
||||
if (hangingSelections > 0)
|
||||
{
|
||||
// For optimal performance, only send a notification if indices were actually removed.
|
||||
var previousSelectionCount = [_selectedRowIndexes count];
|
||||
|
||||
[_selectedRowIndexes removeIndexesInRange:CPMakeRange(_numberOfRows, hangingSelections)];
|
||||
|
||||
if (![_selectedRowIndexes containsIndex:[self selectedRow]])
|
||||
_lastSelectedRow = CPNotFound;
|
||||
|
||||
// For optimal performance, only send a notification if indices were actually removed.
|
||||
var previousSelectionCount = [_selectedRowIndexes count];
|
||||
|
||||
if (previousSelectionCount > [_selectedRowIndexes count])
|
||||
[self _noteSelectionDidChange];
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user