Skip to content

Commit

Permalink
Fix "Inspect Element" not appearing.
Browse files Browse the repository at this point in the history
  • Loading branch information
emsquared committed Jul 20, 2012
1 parent 03420f8 commit a7a3b5b
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 5 deletions.
12 changes: 9 additions & 3 deletions Classes/Views/Channel View/TVCLogPolicy.m
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,9 @@

#import "TextualApplication.h"

#define _WebMenuItemTagInspectElement 2024
#define _WebMenuItemTagInspectElementLion 2024
#define _WebMenuItemTagInspectElementMountainLion 2025

#define _WebMenuItemTagIRCopServices 42354

@implementation TVCLogPolicy
Expand Down Expand Up @@ -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]];
}
Expand Down
4 changes: 2 additions & 2 deletions Resources/Info.plist
Original file line number Diff line number Diff line change
Expand Up @@ -47,8 +47,8 @@
<key>TXBundleBuildCodeName</key>
<string>Turtle Soup</string>
<key>TXBundleBuildNumber</key>
<string>11907</string>
<string>11911</string>
<key>TXBundleBuildReference</key>
<string>2.1.1-242-gfc85b73-debug,llvm4.0</string>
<string>2.1.1-243-g03420f8-debug,llvm4.0</string>
</dict>
</plist>

0 comments on commit a7a3b5b

Please sign in to comment.