diff options
author | stuconnolly <stuart02@gmail.com> | 2010-12-17 21:46:35 +0000 |
---|---|---|
committer | stuconnolly <stuart02@gmail.com> | 2010-12-17 21:46:35 +0000 |
commit | 2bb0262375af1ca9a0a31943e1982b2b3cb7ae56 (patch) | |
tree | f140d93c8674fa3658e168e057b070143a2795cc /Source/SPBundleHTMLOutputController.m | |
parent | 2f1146de80e658021e6a0fc63a20b039f73cca06 (diff) | |
parent | 072a730f22e3c06fed48acf31ac5708259c93a32 (diff) | |
download | sequelpro-2bb0262375af1ca9a0a31943e1982b2b3cb7ae56.tar.gz sequelpro-2bb0262375af1ca9a0a31943e1982b2b3cb7ae56.tar.bz2 sequelpro-2bb0262375af1ca9a0a31943e1982b2b3cb7ae56.zip |
Bring outline view branch up to date with trunk (r3030:3035).
Diffstat (limited to 'Source/SPBundleHTMLOutputController.m')
-rw-r--r-- | Source/SPBundleHTMLOutputController.m | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/Source/SPBundleHTMLOutputController.m b/Source/SPBundleHTMLOutputController.m index 7cad079b..7bcff455 100644 --- a/Source/SPBundleHTMLOutputController.m +++ b/Source/SPBundleHTMLOutputController.m @@ -267,7 +267,13 @@ if([[[request URL] scheme] isEqualToString:@"sequelpro"] && navigationType == WebNavigationTypeLinkClicked) { [[NSApp delegate] handleEventWithURL:[request URL]]; [listener ignore]; - } else { + } + // file://a_file_path opens the reveal the file in Finder + else if([[[request URL] scheme] isEqualToString:@"file"] && navigationType == WebNavigationTypeLinkClicked) { + [[NSWorkspace sharedWorkspace] selectFile:[[[request mainDocumentURL] absoluteString] substringFromIndex:6] inFileViewerRootedAtPath:nil]; + [listener ignore]; + } + else { switch(navigationType) { case WebNavigationTypeLinkClicked: |