mirror of
https://github.com/codex-storage/deluge.git
synced 2025-02-20 07:08:30 +00:00
Fix adding torrents from the Queued Torrents dialog
This commit is contained in:
parent
59b93f4d2e
commit
fb1d7cfece
@ -33,7 +33,7 @@
|
|||||||
#
|
#
|
||||||
#
|
#
|
||||||
|
|
||||||
|
import base64
|
||||||
import os.path
|
import os.path
|
||||||
|
|
||||||
import gtk, gtk.glade
|
import gtk, gtk.glade
|
||||||
@ -191,7 +191,7 @@ class QueuedTorrents(component.Component):
|
|||||||
else:
|
else:
|
||||||
client.core.add_torrent_file(
|
client.core.add_torrent_file(
|
||||||
os.path.split(torrent_path)[-1],
|
os.path.split(torrent_path)[-1],
|
||||||
base64.encodestring(open(torrent_path).read()),
|
base64.encodestring(open(torrent_path, "rb").read()),
|
||||||
None)
|
None)
|
||||||
|
|
||||||
self.liststore.foreach(add_torrent, None)
|
self.liststore.foreach(add_torrent, None)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user