X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/ab13b95e5cd3ce2feb83b5b5011fb21b84041f1e..83dc6964f0a5fce3be25bcf774981f6aae807915:/src/gtk/dataobj.cpp diff --git a/src/gtk/dataobj.cpp b/src/gtk/dataobj.cpp index 2111b237e8..f52cdb4a3d 100644 --- a/src/gtk/dataobj.cpp +++ b/src/gtk/dataobj.cpp @@ -20,7 +20,7 @@ #include "wx/mstream.h" #include "wx/image.h" #include "wx/log.h" -#include "wx/url.h" +#include "wx/uri.h" #include @@ -278,11 +278,7 @@ bool wxFileDataObject::SetData(size_t WXUNUSED(size), const void *buf) lenPrefix += 2; } - AddFile( -#if wxUSE_URL - wxURL::ConvertFromURI -#endif // wxUSE_URL - (filename.c_str() + lenPrefix)); + AddFile(wxURI::Unescape(filename.c_str() + lenPrefix)); filename.Empty(); } else