diff options
author | Florent Le Coz <louiz@louiz.org> | 2011-01-25 21:17:11 +0100 |
---|---|---|
committer | Florent Le Coz <louiz@louiz.org> | 2011-01-25 21:17:11 +0100 |
commit | 6a0346a12ae30a9449a1964260be26dc042195ce (patch) | |
tree | 39cbe883fa5b9e256447ce853ad4152e10b9a6c9 /src | |
parent | cc0449f73b3346ee4d98a1d8e11694ba14e0eb37 (diff) | |
download | poezio-6a0346a12ae30a9449a1964260be26dc042195ce.tar.gz poezio-6a0346a12ae30a9449a1964260be26dc042195ce.tar.bz2 poezio-6a0346a12ae30a9449a1964260be26dc042195ce.tar.xz poezio-6a0346a12ae30a9449a1964260be26dc042195ce.zip |
Fix a little issue on the default values of text-multi
Diffstat (limited to 'src')
-rw-r--r-- | src/data_forms.py | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/data_forms.py b/src/data_forms.py index ae530551..dad5a456 100644 --- a/src/data_forms.py +++ b/src/data_forms.py @@ -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): |