From fe660cdff59aa3a939479ed60172e5c0803552b2 Mon Sep 17 00:00:00 2001 From: Daniel Wilhelm Date: Sun, 8 Jan 2017 18:21:23 +0100 Subject: 8.7 --- wx+/file_drop.h | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'wx+/file_drop.h') diff --git a/wx+/file_drop.h b/wx+/file_drop.h index c3ffe09c..57880ce2 100644 --- a/wx+/file_drop.h +++ b/wx+/file_drop.h @@ -134,6 +134,13 @@ public: private: bool OnDropFiles(wxCoord x, wxCoord y, const wxArrayString& fileArray) override { + /*Linux, MTP: we get an empty file array + => switching to wxTextDropTarget won't help (much): we'd get the format + mtp://[usb:001,002]/Telefonspeicher/Folder/file.txt + instead of + /run/user/1000/gvfs/mtp:host=%5Busb%3A001%2C002%5D/Telefonspeicher/Folder/file.txt + */ + //wxPoint clientDropPos(x, y) std::vector filePaths; for (const wxString& file : fileArray) -- cgit