adium-1.4 2827:a4ecbe8bed46: Durr, brain fart; we need to remove...
commits at adium.im
commits at adium.im
Thu Nov 26 05:59:02 UTC 2009
details: http://hg.adium.im/adium-1.4/rev/a4ecbe8bed46
revision: 2827:a4ecbe8bed46
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.
diffs (14 lines):
diff -r 4a64255881c8 -r a4ecbe8bed46 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
@@ -669,7 +669,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