Fix loading torrent files in Windows when the path is non-ascii
This commit is contained in:
parent
e8d9c43b48
commit
f3f5aa661e
@ -174,6 +174,9 @@ class AddTorrentDialog(component.Component):
|
||||
new_row = None
|
||||
|
||||
for filename in filenames:
|
||||
# Convert the path to unicode
|
||||
filename = unicode(filename)
|
||||
|
||||
# Get the torrent data from the torrent file
|
||||
try:
|
||||
info = deluge.ui.common.TorrentInfo(filename)
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user