From d8e5cbe689cea480387a135f7920d662e9090c3a Mon Sep 17 00:00:00 2001 From: Calum Lind Date: Tue, 21 Mar 2017 18:24:02 +0000 Subject: [PATCH] [#2928] [GTKUI] Fix missing name and trackers adding magnets --- deluge/ui/gtkui/addtorrentdialog.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/deluge/ui/gtkui/addtorrentdialog.py b/deluge/ui/gtkui/addtorrentdialog.py index c4e56421d..67c9cb644 100644 --- a/deluge/ui/gtkui/addtorrentdialog.py +++ b/deluge/ui/gtkui/addtorrentdialog.py @@ -13,6 +13,7 @@ import base64 import logging import os from xml.sax.saxutils import escape as xml_escape +from xml.sax.saxutils import unescape as xml_unescape import gtk from gobject import TYPE_INT64, TYPE_UINT64 @@ -702,7 +703,7 @@ class AddTorrentDialog(component.Component): row = self.torrent_liststore.get_iter_first() while row is not None: torrent_id = self.torrent_liststore.get_value(row, 0) - filename = self.torrent_liststore.get_value(row, 2) + filename = xml_unescape(self.torrent_liststore.get_value(row, 2)) try: options = self.options[torrent_id] except KeyError: