Don't enable the header control if there isn't a header or topic for regular or group chats respectively. Fixes #13791
authorFrank Dowsett <wixardy@adium.im>
Tue Mar 16 06:35:39 2010 -0400 (22 months ago)
changeset 31573629989a40f9
parent 3156 1721a9e92faf
child 3158 d7fe2ee7d9b1
Don't enable the header control if there isn't a header or topic for regular or group chats respectively. Fixes #13791
Plugins/WebKit Message View/ESWebKitMessageViewPreferences.m
     1.1 --- a/Plugins/WebKit Message View/ESWebKitMessageViewPreferences.m	Sun Mar 14 00:47:48 2010 -0500
     1.2 +++ b/Plugins/WebKit Message View/ESWebKitMessageViewPreferences.m	Tue Mar 16 06:35:39 2010 -0400
     1.3 @@ -363,7 +363,10 @@
     1.4  	[imageView_backgroundImage setEnabled:allowCustomBackground];
     1.5  	
     1.6  	//Disable the header control if this style doesn't have a header or topic
     1.7 -	[checkBox_showHeader setEnabled:([messageStyle hasHeader] || [messageStyle hasTopic]) && anyControlsEnabled];
     1.8 +	if (self.currentTab == AIWebkitGroupChat)
     1.9 +		[checkBox_showHeader setEnabled:[messageStyle hasTopic] && anyControlsEnabled];
    1.10 +	else
    1.11 +		[checkBox_showHeader setEnabled:[messageStyle hasHeader] && anyControlsEnabled];
    1.12  	
    1.13  	//Disable user icon toggling if the style doesn't support them
    1.14  	[checkBox_showUserIcons setEnabled:[messageStyle allowsUserIcons] && anyControlsEnabled];