* src/DisplayModels.py: fix datalist[0] problem running with accessbility enabled

svn: r5397
This commit is contained in:
Don Allingham 2005-11-10 22:05:59 +00:00
parent 1daad9d817
commit 052833510f
2 changed files with 2 additions and 1 deletions

View File

@ -5,6 +5,7 @@
* src/plugins/IndivComplete.py: Add author.
2005-11-10 Don Allingham <don@gramps-project.org>
* src/DisplayModels.py: fix datalist[0] problem running with accessbility enabled
* doc/xmldocs.make: fix for GNOME 2.12 help path
* doc/gramps-manual/C/gramps-manual-C.omf: fix for GNOME 2.12 help path.

View File

@ -163,7 +163,7 @@ class BaseModel(gtk.GenericTreeModel):
def on_iter_children(self,node):
"""Return the first child of the node"""
if node == None:
if node == None and self.datalist:
return self.datalist[0]
return None