Changeset 23535
- Timestamp:
- 05/21/2008 07:11:19 AM (6 months ago)
- Files:
-
- trunk/Source/AINewContactWindowController.m (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk/Source/AINewContactWindowController.m
r22676 r23535 508 508 checkedAccounts = [[NSMutableSet alloc] init]; 509 509 510 //Select accounts by default511 510 if (initialAccount && [accounts containsObject:initialAccount]) { 511 //Select accounts by default 512 512 [checkedAccounts addObject:initialAccount]; 513 513 514 } else if ([[accounts valueForKeyPath:@"@sum.online"] intValue] == 1) { 515 //Only one online account; it should be checked 516 NSEnumerator *enumerator; 517 AIAccount *anAccount; 518 519 enumerator = [accounts objectEnumerator]; 520 while ((anAccount = [enumerator nextObject])) { 521 if ([anAccount online]) { 522 [checkedAccounts addObject:anAccount]; 523 break; 524 } 525 } 526 514 527 } else { 528 //More than one online account; follow our 'add contact to' preferences 515 529 NSEnumerator *enumerator; 516 530 AIAccount *anAccount;