See ChangeLog

Monotone-Parent: bc1249b3296aa7dc189df755998b9d703fefd954
Monotone-Revision: bfae70f2a55e4f192f4b03068a3818e1458c8eef

Monotone-Author: ludovic@Sophos.ca
Monotone-Date: 2010-06-30T20:30:30
Monotone-Branch: ca.inverse.sogo
This commit is contained in:
Ludovic Marcotte
2010-06-30 20:30:30 +00:00
parent 75931380bf
commit a08e5bd0f6
3 changed files with 93 additions and 15 deletions
+20 -1
View File
@@ -481,7 +481,26 @@
[self _setSnapshotValue: @"homeURL"
to: [[elements objectAtIndex: 0] value: 0]];
}
// If we do have a "work" URL but no "home" URL but two
// values URLs present, let's add the second one as the home URL
else if ([[snapshot objectForKey: @"workURL"] length] > 0 &&
[[snapshot objectForKey: @"homeURL"] length] == 0 &&
[elements count] > 1)
{
int i;
for (i = 0; i < [elements count]; i++)
{
if ([[[elements objectAtIndex: i] value: 0]
caseInsensitiveCompare: [snapshot objectForKey: @"workURL"]] != NSOrderedSame)
{
[self _setSnapshotValue: @"homeURL"
to: [[elements objectAtIndex: i] value: 0]];
break;
}
}
}
[self _setSnapshotValue: @"calFBURL"
to: [[card uniqueChildWithTag: @"FBURL"] value: 0]];