From a7a3b5bf9bf0507f31979b6a5d9db97c0b3beb76 Mon Sep 17 00:00:00 2001 From: emsquared Date: Fri, 20 Jul 2012 11:13:23 -0400 Subject: [PATCH] Fix "Inspect Element" not appearing. --- Classes/Views/Channel View/TVCLogPolicy.m | 12 +++++++++--- Resources/Info.plist | 4 ++-- 2 files changed, 11 insertions(+), 5 deletions(-) diff --git a/Classes/Views/Channel View/TVCLogPolicy.m b/Classes/Views/Channel View/TVCLogPolicy.m index d5b8e43533..5ba819e221 100755 --- a/Classes/Views/Channel View/TVCLogPolicy.m +++ b/Classes/Views/Channel View/TVCLogPolicy.m @@ -37,7 +37,9 @@ #import "TextualApplication.h" -#define _WebMenuItemTagInspectElement 2024 +#define _WebMenuItemTagInspectElementLion 2024 +#define _WebMenuItemTagInspectElementMountainLion 2025 + #define _WebMenuItemTagIRCopServices 42354 @implementation TVCLogPolicy @@ -131,13 +133,17 @@ - (NSArray *)webView:(WebView *)sender contextMenuItemsForElement:(NSDictionary for (NSMenuItem *item in defaultMenuItems) { if ([item tag] == WebMenuItemTagLookUpInDictionary) { lookupInDictionaryItem = item; - } else if ([item tag] == _WebMenuItemTagInspectElement) { + } else if ([item tag] == _WebMenuItemTagInspectElementLion || + [item tag] == _WebMenuItemTagInspectElementMountainLion) { + inspectElementItem = item; } } for (NSMenuItem *item in [self.menu itemArray]) { - if ([item tag] == _WebMenuItemTagInspectElement) { + if ([item tag] == _WebMenuItemTagInspectElementLion || + [item tag] == _WebMenuItemTagInspectElementMountainLion) { + if (lookupInDictionaryItem) { [ary safeAddObject:[lookupInDictionaryItem copy]]; } diff --git a/Resources/Info.plist b/Resources/Info.plist index 23fd413def..1d223a43c5 100755 --- a/Resources/Info.plist +++ b/Resources/Info.plist @@ -47,8 +47,8 @@ TXBundleBuildCodeName Turtle Soup TXBundleBuildNumber - 11907 + 11911 TXBundleBuildReference - 2.1.1-242-gfc85b73-debug,llvm4.0 + 2.1.1-243-g03420f8-debug,llvm4.0