Fixed handling of multiple marriages and add a new person in the AddSpouse dialog

svn: r1035
This commit is contained in:
Don Allingham 2002-06-18 03:10:43 +00:00
parent 2aff74f369
commit e7b3d58d7b
2 changed files with 2 additions and 2 deletions

View File

@ -47,10 +47,10 @@ class QuickAdd:
surname = self.xml.get_widget("surname").get_text() surname = self.xml.get_widget("surname").get_text()
given = self.xml.get_widget("given").get_text() given = self.xml.get_widget("given").get_text()
person = RelLib.Person() person = RelLib.Person()
self.db.addPerson(person)
name = person.getPrimaryName() name = person.getPrimaryName()
name.setSurname(surname) name.setSurname(surname)
name.setFirstName(given) name.setFirstName(given)
self.db.addPerson(person)
if self.xml.get_widget("male").get_active(): if self.xml.get_widget("male").get_active():
person.setGender(RelLib.Person.male) person.setGender(RelLib.Person.male)
self.father = person self.father = person

View File

@ -1296,7 +1296,7 @@ class Gramps:
sname = self.parent_name(f.getMother()) sname = self.parent_name(f.getMother())
else: else:
sname = self.parent_name(f.getFather()) sname = self.parent_name(f.getFather())
c = self.list_item(sname,f) c = self.list_item(sname,f.getId())
list.append(c) list.append(c)
if f == self.active_family or sel == None: if f == self.active_family or sel == None:
sel = c sel = c