adium 2182:8b3a175ad29d: Remove the "Open Link" menu item once a...

commits at adium.im commits at adium.im
Thu May 14 03:50:58 UTC 2009


details:	http://hg.adium.im/adium/rev/8b3a175ad29d
revision:	2182:8b3a175ad29d
author:		Zachary West <zacw at adium.im>
date:		Wed May 13 23:50:35 2009 -0400

Remove the "Open Link" menu item once again. Fixes #11988.

It seems WebKit changed the tag for the "Open Link" menu item, but there's no enum entry for it. Can't check against Other (=19) now (actual tag = 2000).

diffstat:

 Plugins/WebKit Message View/AIWebKitMessageViewController.m |  3 +--
 1 files changed, 1 insertions(+), 2 deletions(-)

diffs (13 lines):

diff -r 212b01ebcbf9 -r 8b3a175ad29d Plugins/WebKit Message View/AIWebKitMessageViewController.m
--- a/Plugins/WebKit Message View/AIWebKitMessageViewController.m	Wed May 13 23:41:16 2009 -0400
+++ b/Plugins/WebKit Message View/AIWebKitMessageViewController.m	Wed May 13 23:50:35 2009 -0400
@@ -799,8 +799,7 @@
 				[webViewMenuItems removeObjectIdenticalTo:menuItem];
 			} else {
 				//This isn't as nice; there's no tag available. Use the localization from WebKit to look at the title.
-				if ((tag == WebMenuItemTagOther) &&
-					[[menuItem title] isEqualToString:NSLocalizedStringFromTableInBundle(@"Open Link", nil, [NSBundle bundleForClass:[WebView class]], nil)])
+				if ([[menuItem title] isEqualToString:NSLocalizedStringFromTableInBundle(@"Open Link", nil, [NSBundle bundleForClass:[WebView class]], nil)])
 					[webViewMenuItems removeObjectIdenticalTo:menuItem];					
 			}
 		}




More information about the commits mailing list