adium 2978:fba7dafa989e: Durr, brain fart; we need to remove the...

commits at adium.im commits at adium.im
Thu Nov 26 05:59:21 UTC 2009


details:	http://hg.adium.im/adium/rev/fba7dafa989e
revision:	2978:fba7dafa989e
author:		Zachary West <zacw at adium.im>
date:		Thu Nov 26 00:58:50 2009 -0500

Durr, brain fart; we need to remove the keys, not some random nonsensical value-as-key. Refs #12233.

Please grab a nightly >= 1.5hgr2978 to test this.
(transplanted from a4ecbe8bed4622ae2d6c66a0934ea9272bf8171f)

diffs (14 lines):

diff -r bd2d13cea28d -r fba7dafa989e Frameworks/Adium Framework/Source/AIListObject.m
--- a/Frameworks/Adium Framework/Source/AIListObject.m	Thu Nov 26 00:53:04 2009 -0500
+++ b/Frameworks/Adium Framework/Source/AIListObject.m	Thu Nov 26 00:58:50 2009 -0500
@@ -671,7 +671,9 @@
 		AILogWithSignature(@"Correcting for INFINITY index, inObj=%@ allObj=%@", listObject, [dict objectForKey:[NSNumber numberWithFloat:INFINITY]]);
 		
 		// Remove any objects that currently are currently set to INFINITY, they'll regenerate their position to the last place.
-		[newDict removeObjectForKey:[NSNumber numberWithFloat:INFINITY]];
+		for (NSString *key in [newDict allKeysForObject:[NSNumber numberWithFloat:INFINITY]]) {
+			[newDict removeObjectForKey:key];
+		}
 		
 		// Update the preference.
 		[self setPreference:newDict




More information about the commits mailing list