Commit a7a5fb3b authored by Tobias's avatar Tobias Committed by Felix Paul Kühne
Browse files

if we need to remove table rows we should to it at once

parent 60269274
......@@ -105,11 +105,14 @@
}
// update on the same page
else {
NSMutableIndexSet *removeRowIndexes = [NSMutableIndexSet new];
[oldObjects enumerateObjectsUsingBlock:^(id obj, NSUInteger idx, BOOL *stop) {
if ([removedSet containsObject:obj]) {
[table removeRowsAtIndexes:[NSIndexSet indexSetWithIndex:idx]];
[removeRowIndexes addIndex:idx];
}
}];
[table removeRowsAtIndexes:removeRowIndexes];
[newObjects enumerateObjectsUsingBlock:^(id obj, NSUInteger idx, BOOL *stop) {
if ([addedSet containsObject:obj]) {
NSString *rowType = [self rowTypeForObject:obj];
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment