From ee00e635ee34309789ea9934f147a69d50e6a04a Mon Sep 17 00:00:00 2001 From: Wolfgang Sourdeau Date: Tue, 13 Jan 2009 20:39:56 +0000 Subject: [PATCH] Monotone-Parent: 57a604f8ed805a410df500ecbe2ca242e5a2a439 Monotone-Revision: af789fd2e2a4e534fd7125c5adc6956afb527781 Monotone-Author: wsourdeau@inverse.ca Monotone-Date: 2009-01-13T20:39:56 Monotone-Branch: ca.inverse.sogo --- SoObjects/SOGo/SOGoCache.m | 14 +++++++++----- 1 file changed, 9 insertions(+), 5 deletions(-) diff --git a/SoObjects/SOGo/SOGoCache.m b/SoObjects/SOGo/SOGoCache.m index e6cbf3090..1c8fa48c7 100644 --- a/SoObjects/SOGo/SOGoCache.m +++ b/SoObjects/SOGo/SOGoCache.m @@ -289,6 +289,7 @@ withName: (NSString *) name { SOGoUser *user; NSString *uid; + SOGoUserDefaults *defaults; uid = [[theNotification userInfo] objectForKey: @"uid"]; @@ -297,8 +298,9 @@ withName: (NSString *) name #endif if ((user = [users objectForKey: uid])) { - [[user userDefaults] setValues: [[theNotification userInfo] objectForKey: @"values"]]; - [SOGoCache setCachedUserDefaults: (SOGoUserDefaults*)[user userDefaults] user: uid]; + defaults = (SOGoUserDefaults *) [user userDefaults]; + [defaults setValues: [[theNotification userInfo] objectForKey: @"values"]]; + [SOGoCache setCachedUserDefaults: defaults user: uid]; } else { @@ -313,13 +315,15 @@ withName: (NSString *) name { SOGoUser *user; NSString *uid; - + SOGoUserDefaults *settings; + uid = [[theNotification userInfo] objectForKey: @"uid"]; if ((user = [users objectForKey: uid])) { - [[user userSettings] setValues: [[theNotification userInfo] objectForKey: @"values"]]; - [SOGoCache setCachedUserSettings: (SOGoUserDefaults *)[user userSettings] user: uid]; + settings = (SOGoUserDefaults *) [user userSettings]; + [settings setValues: [[theNotification userInfo] objectForKey: @"values"]]; + [SOGoCache setCachedUserSettings: settings user: uid]; } else {