From e7b3d58d7bd624c5d5ac0fbf0ae1fb3f389d960a Mon Sep 17 00:00:00 2001 From: Don Allingham Date: Tue, 18 Jun 2002 03:10:43 +0000 Subject: [PATCH] Fixed handling of multiple marriages and add a new person in the AddSpouse dialog svn: r1035 --- gramps/src/QuickAdd.py | 2 +- gramps/src/gramps_main.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/gramps/src/QuickAdd.py b/gramps/src/QuickAdd.py index 7147b4f0f..20648f4b6 100644 --- a/gramps/src/QuickAdd.py +++ b/gramps/src/QuickAdd.py @@ -47,10 +47,10 @@ class QuickAdd: surname = self.xml.get_widget("surname").get_text() given = self.xml.get_widget("given").get_text() person = RelLib.Person() - self.db.addPerson(person) name = person.getPrimaryName() name.setSurname(surname) name.setFirstName(given) + self.db.addPerson(person) if self.xml.get_widget("male").get_active(): person.setGender(RelLib.Person.male) self.father = person diff --git a/gramps/src/gramps_main.py b/gramps/src/gramps_main.py index f530eb17c..80a27ed91 100755 --- a/gramps/src/gramps_main.py +++ b/gramps/src/gramps_main.py @@ -1296,7 +1296,7 @@ class Gramps: sname = self.parent_name(f.getMother()) else: sname = self.parent_name(f.getFather()) - c = self.list_item(sname,f) + c = self.list_item(sname,f.getId()) list.append(c) if f == self.active_family or sel == None: sel = c