diff --git a/Owncloud iOs Client/AppDelegate.m b/Owncloud iOs Client/AppDelegate.m index aedaee5802..eb6a59083f 100644 --- a/Owncloud iOs Client/AppDelegate.m +++ b/Owncloud iOs Client/AppDelegate.m @@ -183,7 +183,7 @@ - (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:( int currentDBVersion = [ManageDB getDatabaseVersion]; NSUserDefaults *defaults = [NSUserDefaults standardUserDefaults]; - NSInteger openAfterUpgrade = [defaults integerForKey:@"firstOpenAfterUpgrade"]; + NSInteger openAfterUpgrade = [defaults integerForKey:@"openAfterUpgrade"]; if (currentDBVersion == 23 && openAfterUpgrade != 1){ NSLog(@"Migrating after first open upgrade, Change kind of credentials in DB version from 21or22 to23");