fix getting path from uri

This commit is contained in:
DYefremov
2020-06-21 00:52:50 +03:00
parent 57f5e40439
commit bb6679eddf

View File

@@ -372,7 +372,8 @@ class PiconsDialog:
def get_path_from_uris(self, data):
uris = data.get_uris()
if uris:
return Path(urlparse(unquote(uris[0])).path).resolve()
src, sep, dst = uris[0].partition("::::")
return Path(urlparse(unquote(src)).path).resolve()
def update_picon_in_lists(self, dst, fav_id):
picon = get_picon_pixbuf(dst)