[GTKUI] Ensure drag-n-drop urlparsed path is unicode

This commit is contained in:
Calum Lind 2015-11-26 15:07:16 +00:00
commit 803a33efde

View file

@ -199,7 +199,7 @@ def process_args(args):
log.debug("Attempting to add file (%s) from external source...", arg) log.debug("Attempting to add file (%s) from external source...", arg)
if urlparse(arg).scheme == "file": if urlparse(arg).scheme == "file":
arg = url2pathname(urlparse(arg).path) arg = url2pathname(urlparse(arg).path)
path = os.path.abspath(arg) path = os.path.abspath(deluge.common.decode_string(arg))
if not os.path.exists(path): if not os.path.exists(path):
log.error("No such file: %s", path) log.error("No such file: %s", path)