* src/ListModel.py: Check for the list to be long enough.

* src/gramps.glade: Replace ComboBox with ComboBoxEntry; remove
unneeded scrollwed window (caused warning).


svn: r4757
This commit is contained in:
Alex Roitman
2005-06-02 13:23:20 +00:00
parent 1946c31ba6
commit 0258aad197
3 changed files with 129 additions and 138 deletions

@@ -42,7 +42,7 @@ class ListModel:
self.mylist = []
self.data_index = 0
for l in dlist:
if l[3] == TOGGLE:
if len(l)>3 and l[3] == TOGGLE:
self.mylist.append(TYPE_BOOLEAN)
else:
self.mylist.append(TYPE_STRING)