GTKUI: Ensure None value from problem config is empty string for set_text
This commit is contained in:
parent
72753a9ccb
commit
dc0000059b
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue