mirror of
https://github.com/inverse-inc/sogo.git
synced 2026-07-06 00:45:09 +00:00
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:
@@ -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]];
|
||||
|
||||
Reference in New Issue
Block a user