From b47b16049863a5be4488a2f457b6052f64261b40 Mon Sep 17 00:00:00 2001 From: Allan Odgaard Date: Fri, 30 Sep 2016 12:43:55 +0200 Subject: [PATCH] Populate services clipboard with items of type NSFilenamesPboardType MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Back when this code was written there was a lot of problems related to application expectations (especially for the copy clipboard), and that might have been why we did not put NSFilenamesPboardType on the (services) clipboard, but it seems strange as it’s the only type we actually declare support for. --- Frameworks/OakFileBrowser/src/io/FSDataSource.mm | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Frameworks/OakFileBrowser/src/io/FSDataSource.mm b/Frameworks/OakFileBrowser/src/io/FSDataSource.mm index e59717cf..59b4081b 100644 --- a/Frameworks/OakFileBrowser/src/io/FSDataSource.mm +++ b/Frameworks/OakFileBrowser/src/io/FSDataSource.mm @@ -104,6 +104,8 @@ FSDataSource* DataSourceForURL (NSURL* anURL, NSUInteger someOptions) if(servicesPboard) { + if([paths count]) + [types addObject:NSFilenamesPboardType]; if(string = [paths lastObject]) [types addObject:NSStringPboardType]; }