Fixed a bug that caused torrent options popup to not display in some circumstances

This commit is contained in:
Asmageddon 2012-06-08 17:52:50 +02:00
parent a66bd5e847
commit 76babd951d
1 changed files with 3 additions and 1 deletions

View File

@ -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 = (