Don't try and set a title if it's going to be nil. I have no idea why this is happening, probably something busted for the user. Fixes #12772.
authorZachary West <zacw@adium.im>
Fri Oct 16 11:14:37 2009 -0400 (2009-10-16)
changeset 27346c883e681d52
parent 2733 1b04b22253d4
child 2735 a84d7da4ebde
Don't try and set a title if it's going to be nil. I have no idea why this is happening, probably something busted for the user. Fixes #12772.
Frameworks/Adium Framework/Source/AIContactMenu.m
     1.1 --- a/Frameworks/Adium Framework/Source/AIContactMenu.m	Fri Oct 16 11:06:48 2009 -0400
     1.2 +++ b/Frameworks/Adium Framework/Source/AIContactMenu.m	Fri Oct 16 11:14:37 2009 -0400
     1.3 @@ -294,7 +294,9 @@
     1.4  			displayName = listObject.formattedUID;
     1.5  		}
     1.6  		
     1.7 -		[menuItem setTitle:displayName];
     1.8 +		if (displayName)
     1.9 +			[menuItem setTitle:displayName];
    1.10 +		
    1.11  		[menuItem setToolTip:(shouldSetTooltip ? [listObject.statusMessage string] : nil)];
    1.12  
    1.13  		[[menuItem menu] setMenuChangedMessagesEnabled:YES];