summaryrefslogtreecommitdiff
path: root/src/tabs/data_forms.py
diff options
context:
space:
mode:
Diffstat (limited to 'src/tabs/data_forms.py')
-rw-r--r--src/tabs/data_forms.py5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/tabs/data_forms.py b/src/tabs/data_forms.py
index 44c29e6c..70190243 100644
--- a/src/tabs/data_forms.py
+++ b/src/tabs/data_forms.py
@@ -197,6 +197,7 @@ class TextMultiWin(FieldInput, windows.Win):
FieldInput.__init__(self, field)
windows.Win.__init__(self)
self.options = field.getValue()
+ self.options = self.options.split('\n') if self.options else []
self.val_pos = 0
self.edition_input = None
if not isinstance(self.options, list):
@@ -270,9 +271,9 @@ class ListMultiWin(FieldInput, windows.Win):
def __init__(self, field):
FieldInput.__init__(self, field)
windows.Win.__init__(self)
- values = field.getValue()
+ values = field.getValue() or []
self.options = [[option, True if option['value'] in values else False]\
- for option in field.getOptions()]
+ for option in field.get_options()]
self.val_pos = 0
def do_command(self, key):