Bug Fix: Hopefully fix pasting a list of paths
This should hopefully fix pasting from a list of file URLs. Signed-off-by: Christopher Snowhill <kode54@gmail.com>
This commit is contained in:
parent
293a159116
commit
959fdf69a3
1 changed files with 3 additions and 5 deletions
|
@ -463,11 +463,9 @@ static NSString *playlistSavedColumnsID = @"Playlist Saved Columns v0";
|
||||||
|
|
||||||
// Get files from a normal file drop (such as from Finder)
|
// Get files from a normal file drop (such as from Finder)
|
||||||
if([bestType isEqualToString:NSPasteboardTypeFileURL]) {
|
if([bestType isEqualToString:NSPasteboardTypeFileURL]) {
|
||||||
NSMutableArray *urls = [[NSMutableArray alloc] init];
|
NSArray<Class> *classes = @[[NSURL class]];
|
||||||
|
NSDictionary *options = @{};
|
||||||
for(NSString *file in [pboard propertyListForType:NSPasteboardTypeFileURL]) {
|
NSArray<NSURL*> *urls = [pboard readObjectsForClasses:classes options:options];
|
||||||
[urls addObject:[NSURL fileURLWithPath:file]];
|
|
||||||
}
|
|
||||||
|
|
||||||
//[playlistLoader insertURLs:urls atIndex:row sort:YES];
|
//[playlistLoader insertURLs:urls atIndex:row sort:YES];
|
||||||
[acceptedURLs addObjectsFromArray:urls];
|
[acceptedURLs addObjectsFromArray:urls];
|
||||||
|
|
Loading…
Reference in a new issue