07837: Incorrect media path when using drag & drop; backport from gramps41; incomplete for non-ascii path or filename
This commit is contained in:
parent
9046ea8de5
commit
85fd4a8502
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user