mirror of
https://github.com/cappuccino/cappuccino.git
synced 2026-09-07 03:07:12 +00:00
Fixed: variable move in previous commit broke selection notifications.
This commit is contained in:
@@ -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