Fix a little issue on the default values of text-multi

This commit is contained in:
Florent Le Coz 2011-01-25 21:17:11 +01:00
parent cc0449f73b
commit 6a0346a12a

View file

@ -158,7 +158,10 @@ class TextMultiWin(FieldInput, windows.Win):
self.val_pos = 0
self.edition_input = None
if not isinstance(self.options, list):
self.options = [self.options]
if isinstance(self.options, str):
self.options = [self.options]
else:
self.options = []
self.options.append('')
def do_command(self, key):