Skip to content

Commit

Permalink
Merge pull request #6 from Creadhoc/ObjectiveC-master
Browse files Browse the repository at this point in the history
- Update is not triggered if NSFRC reports move and source and destination paths are equal
  • Loading branch information
DenTelezhkin committed Oct 12, 2015
2 parents f813592 + 6da1124 commit e7277ad
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions DTModelStorage/CoreData/DTCoreDataStorage.m
Original file line number Diff line number Diff line change
Expand Up @@ -134,6 +134,10 @@ - (void)controller:(NSFetchedResultsController *)controller didChangeObject:(id)
[self.currentUpdate.deletedRowIndexPaths addObject:indexPath];
} else if (type == NSFetchedResultsChangeMove)
{
if ([indexPath compare:newIndexPath] == NSOrderedSame)
{
return;
}
if ([self.currentUpdate.insertedSectionIndexes containsIndex:newIndexPath.section] == NO)
{
[self.currentUpdate.insertedRowIndexPaths addObject:newIndexPath];
Expand Down

0 comments on commit e7277ad

Please sign in to comment.