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