07837: Incorrect media path when using drag & drop; backport from gramps41; incomplete for non-ascii path or filename

This commit is contained in:
Jérôme Rapinat 2014-07-15 21:41:17 +02:00
parent 9046ea8de5
commit 85fd4a8502

View File

@ -191,7 +191,7 @@ class MediaView(ListView):
None)
protocol, site, mfile, j, k, l = urlparse(clean_string)
if protocol == "file":
name = mfile
name = url2pathname(mfile)
mime = get_type(name)
if not is_valid_type(mime):
return