From 76babd951d383d2e0f4b054421d19482478ca3da Mon Sep 17 00:00:00 2001 From: Asmageddon Date: Fri, 8 Jun 2012 17:52:50 +0200 Subject: [PATCH] Fixed a bug that caused torrent options popup to not display in some circumstances --- deluge/ui/console/modes/torrent_actions.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/deluge/ui/console/modes/torrent_actions.py b/deluge/ui/console/modes/torrent_actions.py index 3ba570138..2988245e1 100644 --- a/deluge/ui/console/modes/torrent_actions.py +++ b/deluge/ui/console/modes/torrent_actions.py @@ -272,7 +272,9 @@ def torrent_action(idx, data, mode, ids): caption = "{!info!}" + torrent_options_to_names[field] value = options[field] if field_type == str: - option_popup.add_text_input(caption, field, str(value)) + if not isinstance(value, basestring): + value = str(value) + option_popup.add_text_input(caption, field, value) elif field_type == bool: if options[field] == "multiple": choices = (