mirror of
https://git.deluge-torrent.org/deluge
synced 2025-04-20 11:35:49 +00:00
Fixed a bug that caused torrent options popup to not display in some circumstances
This commit is contained in:
parent
a66bd5e847
commit
76babd951d
1 changed files with 3 additions and 1 deletions
|
@ -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 = (
|
||||
|
|
Loading…
Add table
Reference in a new issue