Make sure we select the first if none selected

svn: r864
This commit is contained in:
Don Allingham 2002-03-28 03:07:33 +00:00
parent 6fc6496df2
commit 2c46a287e4

View File

@ -1381,7 +1381,7 @@ class Gramps:
mymap = {}
mynmap = {}
list = []
sel = 0
sel = None
for f in self.active_person.getFamilyList():
if self.active_person == f.getFather():
if f.getMother() == None:
@ -1401,7 +1401,7 @@ class Gramps:
c.set_data('d',f)
c.show()
list.append(c)
if f == self.active_family:
if f == self.active_family or sel == None:
sel = c
mymap[f] = c
mynmap[f] = sname