Adium

Changeset 23340

Show
Ignore:
Timestamp:
05/07/2008 09:04:52 PM (7 months ago)
Author:
evands
Message:

Further refine -[OWABSearchWindowController serviceMenuShouldIncludeService:] to only include services for which one or more compatible account is online.

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/Source/OWABSearchWindowController.m

    r23338 r23340  
    460460 * @brief Called by AIServiceMenu to determine what services should be included 
    461461 */ 
    462 - (BOOL)serviceMenuShouldIncludeService:(AIService *)service 
    463 
    464         return ([ESAddressBookIntegrationPlugin propertyFromService:service] ? YES : NO); 
     462- (BOOL)serviceMenuShouldIncludeService:(AIService *)inService 
     463
     464        return (([ESAddressBookIntegrationPlugin propertyFromService:inService] && 
     465                         [[[[adium accountController] accountsCompatibleWithService:inService] valueForKeyPath:@"@sum.online"] boolValue]) ? YES : NO); 
    465466} 
    466467