diff options
author | Akemi <der.richter@gmx.de> | 2018-10-25 19:39:59 +0200 |
---|---|---|
committer | Jan Ekström <jeebjp@gmail.com> | 2019-02-10 23:47:34 +0200 |
commit | 777a863bb6c3829dad617154ba3574e9592b85f9 (patch) | |
tree | 8cf54f922ff462395c9a78e3aef7cb94f12eb48d /video | |
parent | 6ce570359aa06469d3ead822227058ec87c86b30 (diff) | |
download | mpv-777a863bb6c3829dad617154ba3574e9592b85f9.tar.bz2 mpv-777a863bb6c3829dad617154ba3574e9592b85f9.tar.xz |
cocoa-cb: remove empty elements from dropped URLs
Fixes #6241
Diffstat (limited to 'video')
-rw-r--r-- | video/out/cocoa-cb/events_view.swift | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/video/out/cocoa-cb/events_view.swift b/video/out/cocoa-cb/events_view.swift index 5a84d27b2b..667366285e 100644 --- a/video/out/cocoa-cb/events_view.swift +++ b/video/out/cocoa-cb/events_view.swift @@ -75,7 +75,8 @@ class EventsView: NSView { return true } } else if types.contains(NSURLPboardType) { - if let url = pb.propertyList(forType: NSURLPboardType) as? [Any] { + if var url = pb.propertyList(forType: NSURLPboardType) as? [String] { + url = url.filter{ !$0.isEmpty } EventsResponder.sharedInstance().handleFilesArray(url) return true } |