From bb48771989a2dd4c0af86a0a0236a2a513dd5e0f Mon Sep 17 00:00:00 2001 From: Maarten Billemont Date: Sun, 15 Jun 2014 11:56:29 -0400 Subject: [PATCH] Small main context fix. --- MasterPassword/ObjC/iOS/MPPasswordTypesCell.m | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/MasterPassword/ObjC/iOS/MPPasswordTypesCell.m b/MasterPassword/ObjC/iOS/MPPasswordTypesCell.m index 09ad0c02..14605452 100644 --- a/MasterPassword/ObjC/iOS/MPPasswordTypesCell.m +++ b/MasterPassword/ObjC/iOS/MPPasswordTypesCell.m @@ -243,7 +243,7 @@ } ); else [MPiOSAppDelegate managedObjectContextForMainThreadPerformBlockAndWait:^(NSManagedObjectContext *mainContext) { - MPElementEntity *mainElement = [self mainElement]; + MPElementEntity *mainElement = [self elementInContext:mainContext]; self.algorithm = mainElement.algorithm?: MPAlgorithmDefault; self.activeType = mainElement.type;