diff --git a/UI/PreferencesUI/UIxJSONPreferences.m b/UI/PreferencesUI/UIxJSONPreferences.m index 7b7c3e5a1..fcd76b039 100644 --- a/UI/PreferencesUI/UIxJSONPreferences.m +++ b/UI/PreferencesUI/UIxJSONPreferences.m @@ -255,6 +255,16 @@ static SoProduct *preferencesProduct = nil; forKey: @"PreventInvitationsWhitelist"]; } + // Initialize some default values + if (![settings objectForKey: @"Calendar"]) + [settings setObject: [NSMutableDictionary dictionary] forKey: @"Calendar"]; + + if (![settings objectForKey: @"Contact"]) + [settings setObject: [NSMutableDictionary dictionary] forKey: @"Contact"]; + + if (![settings objectForKey: @"Mail"]) + [settings setObject: [NSMutableDictionary dictionary] forKey: @"Mail"]; + return [self _makeResponse: [[settings source] values]]; }