diff --git a/MasterPassword/ObjC/iOS/MPPasswordsViewController.m b/MasterPassword/ObjC/iOS/MPPasswordsViewController.m index 4751c9e4..344f9691 100644 --- a/MasterPassword/ObjC/iOS/MPPasswordsViewController.m +++ b/MasterPassword/ObjC/iOS/MPPasswordsViewController.m @@ -370,7 +370,9 @@ referenceSizeForHeaderInSection:(NSInteger)section { } [self.fetchedResultsController.managedObjectContext performBlock:^{ - NSArray *oldSections = [self.fetchedResultsController sections]; + NSMutableArray *oldSections = [NSMutableArray arrayWithCapacity:[[self.fetchedResultsController sections] count]]; + for (id section in [self.fetchedResultsController sections]) + [oldSections addObject:[section.objects copy]]; NSError *error = nil; self.fetchedResultsController.fetchRequest.predicate = @@ -391,7 +393,7 @@ referenceSizeForHeaderInSection:(NSInteger)section { else if (section >= toSections) [self.passwordCollectionView deleteSections:[NSIndexSet indexSetWithIndex:section]]; else - [self.passwordCollectionView reloadItemsFromArray:[oldSections[section] objects] + [self.passwordCollectionView reloadItemsFromArray:oldSections[section] toArray:[[self.fetchedResultsController sections][section] objects] inSection:section]; } diff --git a/Scripts/updateDependencies b/Scripts/updateDependencies index 752dd904..7f949011 100755 --- a/Scripts/updateDependencies +++ b/Scripts/updateDependencies @@ -5,7 +5,7 @@ shopt -s extglob ## Submodules that need to be checked out. -dependencies=( External/{InAppSettingsKit,Pearl{,:External/jrswizzle,:External/uicolor-utilities},UbiquityStoreManager,RHStatusItemView,LoveLyndir} ) +dependencies=( External/{InAppSettingsKit,Pearl{,:External/jrswizzle,:External/uicolor-utilities},UbiquityStoreManager,RHStatusItemView} ) ## Custom migration. # None yet.