From 052833510f63c569bb821540526deeed4fc22a9e Mon Sep 17 00:00:00 2001 From: Don Allingham Date: Thu, 10 Nov 2005 22:05:59 +0000 Subject: [PATCH] * src/DisplayModels.py: fix datalist[0] problem running with accessbility enabled svn: r5397 --- gramps2/ChangeLog | 1 + gramps2/src/DisplayModels.py | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/gramps2/ChangeLog b/gramps2/ChangeLog index 6b3fafdeb..2402b563b 100644 --- a/gramps2/ChangeLog +++ b/gramps2/ChangeLog @@ -5,6 +5,7 @@ * src/plugins/IndivComplete.py: Add author. 2005-11-10 Don Allingham + * 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. diff --git a/gramps2/src/DisplayModels.py b/gramps2/src/DisplayModels.py index 0aabac838..98b43766d 100644 --- a/gramps2/src/DisplayModels.py +++ b/gramps2/src/DisplayModels.py @@ -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