Author: andar
Revision: 5897
Log:
Fix adding torrents when not showing the add torrent dialog in Windows
Diff:
Modified: branches/1.2_RC/ChangeLog
===================================================================
--- branches/1.2_RC/ChangeLog 2009-10-30 20:06:07 UTC (rev 5896)
+++ branches/1.2_RC/ChangeLog 2009-10-31 00:08:53 UTC (rev 5897)
@@ -5,8 +5,9 @@
* Fix torrent name being blank when renaming root folder to /
==== GtkUI ====
- * replace & with & in the details tab to ensure there are no markup
errors
+ * Replace & with & in the details tab to ensure there are no markup
errors
* Consider 0 unlimited when displaying limits in the statusbar
+ * Fix adding torrents when not showing the add torrent dialog in Windows
==== Web ====
* Fix #1046 changing auto managed via the details tab
Modified: branches/1.2_RC/deluge/ui/gtkui/ipcinterface.py
===================================================================
--- branches/1.2_RC/deluge/ui/gtkui/ipcinterface.py 2009-10-30 20:06:07 UTC
(rev 5896)
+++ branches/1.2_RC/deluge/ui/gtkui/ipcinterface.py 2009-10-31 00:08:53 UTC
(rev 5897)
@@ -163,4 +163,4 @@
component.get("AddTorrentDialog").show(config["focus_add_dialog"])
else:
path = os.path.abspath(arg)
- client.core.add_torrent_file(os.path.split(path)[-1],
base64.encodestring(open(path).read()), None)
+ client.core.add_torrent_file(os.path.split(path)[-1],
base64.encodestring(open(path, "rb").read()), None)
Modified: trunk/deluge/ui/gtkui/ipcinterface.py
===================================================================
--- trunk/deluge/ui/gtkui/ipcinterface.py 2009-10-30 20:06:07 UTC (rev
5896)
+++ trunk/deluge/ui/gtkui/ipcinterface.py 2009-10-31 00:08:53 UTC (rev
5897)
@@ -163,4 +163,4 @@
component.get("AddTorrentDialog").show(config["focus_add_dialog"])
else:
path = os.path.abspath(arg)
- client.core.add_torrent_file(os.path.split(path)[-1],
base64.encodestring(open(path).read()), None)
+ client.core.add_torrent_file(os.path.split(path)[-1],
base64.encodestring(open(path, "rb").read()), None)
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"deluge-commit" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/deluge-commit?hl=en
-~----------~----~----~----~------~----~------~--~---