From f97d0ea87ead85f85673c685133bfa1908fc1222 Mon Sep 17 00:00:00 2001 From: wolfgang Date: Thu, 1 Nov 2007 22:22:00 +0000 Subject: [PATCH] git-svn-id: http://svn.opengroupware.org/SOGo/inverse/trunk@1215 d1b88da0-ebda-0310-925b-ed51d893ca5b --- ChangeLog | 5 +++++ SoObjects/SOGo/AgenorUserDefaults.m | 5 ++++- 2 files changed, 9 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index d3aeb5bc..8882bd88 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,5 +1,10 @@ 2007-11-01 Wolfgang Sourdeau + * SoObjects/SOGo/AgenorUserDefaults.m ([AgenorUserDefaults + -primaryFetchProfile]): make sure that the deserialized "values" + is an instance of NSMutableDictionary, otherwise we override it + with one. + * SoObjects/Mailer/SOGoMailObject+Draft.m ([SOGoMailObject -contentForReply]): make use of the SOGoMailReply WO page. diff --git a/SoObjects/SOGo/AgenorUserDefaults.m b/SoObjects/SOGo/AgenorUserDefaults.m index 39778f76..5c7db08d 100644 --- a/SoObjects/SOGo/AgenorUserDefaults.m +++ b/SoObjects/SOGo/AgenorUserDefaults.m @@ -158,7 +158,10 @@ static NSString *uidColumnName = @"c_uid"; mutabilityOption: NSPropertyListMutableContainers format: NULL errorDescription: &error]; - [values retain]; + if ([values isKindOfClass: [NSMutableDictionary class]]) + [values retain]; + else + values = [NSMutableDictionary new]; } ASSIGN (lastFetch, [NSCalendarDate date]); -- 2.39.5