adium-1.4 2621:f50210ffe03f: Don't try and set a title if it's g...

commits at adium.im commits at adium.im
Fri Oct 16 15:15:28 UTC 2009


details:	http://hg.adium.im/adium-1.4/rev/f50210ffe03f
revision:	2621:f50210ffe03f
author:		Zachary West <zacw at adium.im>
date:		Fri Oct 16 11:14:37 2009 -0400

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.

diffs (14 lines):

diff -r 29c166695832 -r f50210ffe03f Frameworks/Adium Framework/Source/AIContactMenu.m
--- a/Frameworks/Adium Framework/Source/AIContactMenu.m	Fri Oct 16 11:06:48 2009 -0400
+++ b/Frameworks/Adium Framework/Source/AIContactMenu.m	Fri Oct 16 11:14:37 2009 -0400
@@ -294,7 +294,9 @@
 			displayName = listObject.formattedUID;
 		}
 		
-		[menuItem setTitle:displayName];
+		if (displayName)
+			[menuItem setTitle:displayName];
+		
 		[menuItem setToolTip:(shouldSetTooltip ? [listObject.statusMessage string] : nil)];
 
 		[[menuItem menu] setMenuChangedMessagesEnabled:YES];




More information about the commits mailing list