Frameworks/Adium Framework/Source/AIServiceIcons.m
changeset 2743 df2c24e3844c
parent 2742 2b36c67b4a96
child 3074 c867117688bb
     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