From 85fd4a85022c5cde9f17a5da7ea9d1056dd2049e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=A9r=C3=B4me=20Rapinat?= Date: Tue, 15 Jul 2014 21:41:17 +0200 Subject: [PATCH] 07837: Incorrect media path when using drag & drop; backport from gramps41; incomplete for non-ascii path or filename --- gramps/plugins/view/mediaview.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gramps/plugins/view/mediaview.py b/gramps/plugins/view/mediaview.py index 016f9b1a6..301953284 100644 --- a/gramps/plugins/view/mediaview.py +++ b/gramps/plugins/view/mediaview.py @@ -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