adium 3157:3629989a40f9: Don't enable the header control if ther...

commits at adium.im commits at adium.im
Tue Mar 16 19:30:57 UTC 2010


details:	http://hg.adium.im/adium/rev/3629989a40f9
revision:	3157:3629989a40f9
author:		Frank Dowsett <wixardy at adium.im>
date:		Tue Mar 16 06:35:39 2010 -0400

Don't enable the header control if there isn't a header or topic for regular or group chats respectively. Fixes #13791

diffs (15 lines):

diff -r 1721a9e92faf -r 3629989a40f9 Plugins/WebKit Message View/ESWebKitMessageViewPreferences.m
--- a/Plugins/WebKit Message View/ESWebKitMessageViewPreferences.m	Sun Mar 14 00:47:48 2010 -0500
+++ b/Plugins/WebKit Message View/ESWebKitMessageViewPreferences.m	Tue Mar 16 06:35:39 2010 -0400
@@ -363,7 +363,10 @@
 	[imageView_backgroundImage setEnabled:allowCustomBackground];
 	
 	//Disable the header control if this style doesn't have a header or topic
-	[checkBox_showHeader setEnabled:([messageStyle hasHeader] || [messageStyle hasTopic]) && anyControlsEnabled];
+	if (self.currentTab == AIWebkitGroupChat)
+		[checkBox_showHeader setEnabled:[messageStyle hasTopic] && anyControlsEnabled];
+	else
+		[checkBox_showHeader setEnabled:[messageStyle hasHeader] && anyControlsEnabled];
 	
 	//Disable user icon toggling if the style doesn't support them
 	[checkBox_showUserIcons setEnabled:[messageStyle allowsUserIcons] && anyControlsEnabled];




More information about the commits mailing list