fix DnD of files on roster
This commit is contained in:
parent
09bcbc0cef
commit
2bb5ad7bca
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue