Browse Source

check option value before using it, closes #196

master
Julio Biason 15 years ago
parent
commit
a98beb9a8c
  1. 2
      mitterlib/ui/ui_pygtk.py

2
mitterlib/ui/ui_pygtk.py

@ -1049,7 +1049,9 @@ class Interface(object):
pass pass
new_field = gtk.Entry() new_field = gtk.Entry()
if option_value:
new_field.set_text(option_value) new_field.set_text(option_value)
# Ony "str" and "passwd" are valid type and both use Entry() # Ony "str" and "passwd" are valid type and both use Entry()
if option['type'] == 'passwd': if option['type'] == 'passwd':
new_field.set_visibility(False) new_field.set_visibility(False)

Loading…
Cancel
Save