]> git.saurik.com Git - wxWidgets.git/blobdiff - src/gtk/dataobj.cpp
Don't always maximize top-level windows on Smartphone
[wxWidgets.git] / src / gtk / dataobj.cpp
index 5a22da60b16a0ab6522e3f4189a312d9fb8d8f4f..f52cdb4a3dce6c3db149160a9337ac2669939f91 100644 (file)
@@ -20,6 +20,7 @@
 #include "wx/mstream.h"
 #include "wx/image.h"
 #include "wx/log.h"
+#include "wx/uri.h"
 
 #include <gdk/gdk.h>
 
@@ -277,7 +278,7 @@ bool wxFileDataObject::SetData(size_t WXUNUSED(size), const void *buf)
                     lenPrefix += 2;
                 }
 
-                AddFile(wxURL::ConvertFromURI(filename.c_str() + lenPrefix));
+                AddFile(wxURI::Unescape(filename.c_str() + lenPrefix));
                 filename.Empty();
             }
             else