adium 2176:2a05cdeae0c5: Temporary workaround for a ByObjectPref...

commits at adium.im commits at adium.im
Wed May 13 19:54:13 UTC 2009


details:	http://hg.adium.im/adium/rev/2a05cdeae0c5
revision:	2176:2a05cdeae0c5
author:		David Smith <catfish.man at gmail.com>
date:		Wed May 13 12:53:53 2009 -0700

Temporary workaround for a ByObjectPrefs saving issue that Colin and Zac have seen

diffstat:

 Source/AIPreferenceContainer.m |  7 ++++++-
 1 files changed, 6 insertions(+), 1 deletions(-)

diffs (17 lines):

diff -r cba9e94d6cbc -r 2a05cdeae0c5 Source/AIPreferenceContainer.m
--- a/Source/AIPreferenceContainer.m	Wed May 13 01:42:44 2009 -0400
+++ b/Source/AIPreferenceContainer.m	Wed May 13 12:53:53 2009 -0700
@@ -417,7 +417,12 @@
 - (void)performObjectPrefsSave:(NSTimer *)inTimer
 {
 	NSDictionary *immutablePrefsToWrite = [[[NSDictionary alloc] initWithDictionary:inTimer.userInfo copyItems:YES] autorelease];
-	[immutablePrefsToWrite asyncWriteToPath:adium.loginController.userDirectory withName:globalPrefsName];
+#warning figure this out
+	if ([immutablePrefsToWrite count] > 0) {
+		[immutablePrefsToWrite asyncWriteToPath:adium.loginController.userDirectory withName:globalPrefsName];
+	} else {
+		NSLog(@"Attempted to write an empty ByObject Prefs. Uh oh!");
+	}
 	if (inTimer == timer_savingOfObjectCache) {
 			[timer_savingOfObjectCache release]; timer_savingOfObjectCache = nil;
 	} else if (inTimer == timer_savingOfAccountCache) {




More information about the commits mailing list