fix DnD of files on roster

This commit is contained in:
Yann Leboulanger 2017-08-16 23:06:05 +02:00
parent 09bcbc0cef
commit 2bb5ad7bca
1 changed files with 1 additions and 1 deletions

View File

@ -555,7 +555,7 @@ def build_command(executable, parameter):
return command
def get_file_path_from_dnd_dropped_uri(uri):
path = urllib.parse.unquote(uri.decode('utf-8')) # escape special chars
path = urllib.parse.unquote(uri) # escape special chars
path = path.strip('\r\n\x00') # remove \r\n and NULL
# get the path to file
if re.match('^file:///[a-zA-Z]:/', path): # windows