diff options
author | mathieui <mathieui@mathieui.net> | 2016-04-05 21:17:31 +0200 |
---|---|---|
committer | mathieui <mathieui@mathieui.net> | 2016-04-05 21:17:31 +0200 |
commit | 12ef4f0e0e670871d954130e07a3861a5e990d59 (patch) | |
tree | 14284058b6fccf9d5875aa0eef247d1f2dfa230e | |
parent | 51566463bdfc609dd5187b2f0d4aecc7ab6477a9 (diff) | |
download | poezio-12ef4f0e0e670871d954130e07a3861a5e990d59.tar.gz poezio-12ef4f0e0e670871d954130e07a3861a5e990d59.tar.bz2 poezio-12ef4f0e0e670871d954130e07a3861a5e990d59.tar.xz poezio-12ef4f0e0e670871d954130e07a3861a5e990d59.zip |
Fix handling of the jid-multi data form field
-rw-r--r-- | src/windows/data_forms.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/windows/data_forms.py b/src/windows/data_forms.py index 0978f5e3..410648ec 100644 --- a/src/windows/data_forms.py +++ b/src/windows/data_forms.py @@ -124,7 +124,8 @@ class TextMultiWin(FieldInput, Win): FieldInput.__init__(self, field) Win.__init__(self) self.options = field.getValue() - self.options = self.options.split('\n') if self.options else [] + if not isinstance(self.options, list): + self.options = self.options.split('\n') if self.options else [] self.val_pos = 0 self.edition_input = None if not isinstance(self.options, list): |