mirror of
https://github.com/netsurf-browser/netsurf
synced 2024-11-28 01:09:39 +03:00
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
This commit is contained in:
parent
f2bc0163c0
commit
45c30cd3d1
@ -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];
|
||||
|
Loading…
Reference in New Issue
Block a user