summaryrefslogtreecommitdiff
path: root/wx+/file_drop.h
diff options
context:
space:
mode:
Diffstat (limited to 'wx+/file_drop.h')
-rw-r--r--wx+/file_drop.h7
1 files changed, 7 insertions, 0 deletions
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<Zstring> filePaths;
for (const wxString& file : fileArray)
bgstack15