From 45c30cd3d19d90fc9f8bd83ab88ffbd6a5834040 Mon Sep 17 00:00:00 2001 From: Sven Weidauer Date: Fri, 4 Mar 2011 10:38:07 +0000 Subject: [PATCH] Checking for public.url pasteboard type first, so dragging a .webloc file from the Finder opens the URL and not the .webloc file itself. svn path=/trunk/netsurf/; revision=11901 --- cocoa/BrowserView.m | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cocoa/BrowserView.m b/cocoa/BrowserView.m index 1f38dd247..bc6e598b5 100644 --- a/cocoa/BrowserView.m +++ b/cocoa/BrowserView.m @@ -612,7 +612,7 @@ static browser_mouse_state cocoa_mouse_flags_for_event( NSEvent *evt ) { NSPasteboard *pb = [sender draggingPasteboard]; - NSString *type = [pb availableTypeFromArray:[NSArray arrayWithObjects: NSURLPboardType, @"public.url", nil]]; + NSString *type = [pb availableTypeFromArray:[NSArray arrayWithObjects: @"public.url", NSURLPboardType, nil]]; NSString *url = nil; if ([type isEqualToString: NSURLPboardType]) url = [[NSURL URLFromPasteboard: pb] absoluteString];