GTKUI: Ensure None value from problem config is empty string for set_text

This commit is contained in:
Calum Lind 2014-02-09 19:20:06 +00:00
parent 72753a9ccb
commit dc0000059b
1 changed files with 2 additions and 0 deletions

View File

@ -467,6 +467,8 @@ class Preferences(component.Component):
elif modifier == "value":
widget.set_value(float(value))
elif modifier == "text":
if value is None:
value = ""
widget.set_text(value)
elif modifier == "path_chooser":
widget.set_text(value, cursor_end=False, default_text=True)