mirror of
https://github.com/cappuccino/cappuccino.git
synced 2026-10-10 10:42:19 +00:00
fixed a bug that removeObject shows empty selection if an object at index 0 was removed
This commit is contained in:
1 parent
fea0299033
commit
364208e029
8 files changed
+413
No files matched your search
@@ -879,6 +879,9 @@
|
||||
|
||||
[_arrangedObjects removeObjectAtIndex:pos];
|
||||
[_selectionIndexes shiftIndexesStartingAtIndex:pos by:-1];
|
||||
|
||||
// This will automatically handle the avoidsEmptySelection case.
|
||||
[self __setSelectionIndexes:_selectionIndexes];
|
||||
}
|
||||
|
||||
[self didChangeValueForKey:@"content"];
|
||||
|
||||
Reference in new issue
Block a user