From c5be6bd742a46b01267f8a4e449d15f3512774f9 Mon Sep 17 00:00:00 2001 From: Maarten Billemont Date: Sun, 22 Sep 2013 23:46:06 -0400 Subject: [PATCH] Fixed local store migration and possible crash. [FIXED] Migration to local store. [FIXED] Potential crash when enumerating sheets to dismiss. --- External/UbiquityStoreManager | 2 +- MasterPassword/ObjC/iOS/MPMainViewController.m | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/External/UbiquityStoreManager b/External/UbiquityStoreManager index f6308a72..36c87427 160000 --- a/External/UbiquityStoreManager +++ b/External/UbiquityStoreManager @@ -1 +1 @@ -Subproject commit f6308a72e58a4dbd71adca81ee5f67971890065c +Subproject commit 36c874278107713956fb73b577087343ce25c5df diff --git a/MasterPassword/ObjC/iOS/MPMainViewController.m b/MasterPassword/ObjC/iOS/MPMainViewController.m index aa664c95..2332cf4c 100644 --- a/MasterPassword/ObjC/iOS/MPMainViewController.m +++ b/MasterPassword/ObjC/iOS/MPMainViewController.m @@ -100,7 +100,7 @@ self.suppressOutdatedAlert = NO; [self updateAnimated:NO]; - [[PearlSheet activeSheets] enumerateObjectsUsingBlock:^(id obj, NSUInteger idx, BOOL *stop) { + [[[PearlSheet activeSheets] copy] enumerateObjectsUsingBlock:^(id obj, NSUInteger idx, BOOL *stop) { [obj cancelSheetAnimated:NO]; }]; if (![self.navigationController presentedViewController])