Frameworks/Adium Framework/Source/AIServiceIcons.m
changeset 2632 4e544bf1b994
parent 2631 b8941b8c037c
     1.1 --- a/Frameworks/Adium Framework/Source/AIServiceIcons.m	Sat Oct 17 17:22:17 2009 -0400
     1.2 +++ b/Frameworks/Adium Framework/Source/AIServiceIcons.m	Sat Oct 17 17:35:57 2009 -0400
     1.3 @@ -74,7 +74,12 @@
     1.4  	if (iconName) {
     1.5  		return [serviceIconBasePath stringByAppendingPathComponent:iconName];
     1.6  	} else {
     1.7 -		return nil;
     1.8 +		AIService *service = [adium.accountController firstServiceWithServiceID:serviceID];
     1.9 +		if (service) {
    1.10 +			return [service pathForDefaultServiceIconOfType:iconType];
    1.11 +		} else {
    1.12 +			return nil;
    1.13 +		}
    1.14  	}
    1.15  }
    1.16