2006-06-16 Don Allingham <don@gramps-project.org>
* src/Editors/_EditFamiy.py: make EditPerson windows subordinate to EditFamily windows. This prevents the EditPerson window from trying to trying to access a non-existent window and causing a segfault svn: r6900
This commit is contained in:
parent
18c33bcf50
commit
20ee3d9d2f
@ -1,3 +1,9 @@
|
|||||||
|
2006-06-16 Don Allingham <don@gramps-project.org>
|
||||||
|
* src/Editors/_EditFamiy.py: make EditPerson windows subordinate
|
||||||
|
to EditFamily windows. This prevents the EditPerson window from
|
||||||
|
trying to trying to access a non-existent window and causing a
|
||||||
|
segfault
|
||||||
|
|
||||||
2006-06-15 Don Allingham <don@gramps-project.org>
|
2006-06-15 Don Allingham <don@gramps-project.org>
|
||||||
* src/GrampsDb/_GrampsDbBase.py: prevent null event types and
|
* src/GrampsDb/_GrampsDbBase.py: prevent null event types and
|
||||||
attribute types from being added
|
attribute types from being added
|
||||||
|
@ -206,7 +206,8 @@ class ChildEmbedList(EmbeddedList):
|
|||||||
person.get_primary_name().set_surname(name[1])
|
person.get_primary_name().set_surname(name[1])
|
||||||
person.get_primary_name().set_surname_prefix(name[0])
|
person.get_primary_name().set_surname_prefix(name[0])
|
||||||
|
|
||||||
EditPerson(self.dbstate,self.uistate,[],person, self.new_child_added)
|
EditPerson(self.dbstate, self.uistate, self.track,person,
|
||||||
|
self.new_child_added)
|
||||||
|
|
||||||
def new_child_added(self, person):
|
def new_child_added(self, person):
|
||||||
ref = RelLib.ChildRef()
|
ref = RelLib.ChildRef()
|
||||||
@ -515,13 +516,15 @@ class EditFamily(EditPrimary):
|
|||||||
from Editors import EditPerson
|
from Editors import EditPerson
|
||||||
person = RelLib.Person()
|
person = RelLib.Person()
|
||||||
person.set_gender(RelLib.Person.FEMALE)
|
person.set_gender(RelLib.Person.FEMALE)
|
||||||
EditPerson(self.dbstate,self.uistate,[],person, self.new_mother_added)
|
EditPerson(self.dbstate, self.uistate, self.track, person,
|
||||||
|
self.new_mother_added)
|
||||||
|
|
||||||
def add_father_clicked(self, obj):
|
def add_father_clicked(self, obj):
|
||||||
from Editors import EditPerson
|
from Editors import EditPerson
|
||||||
person = RelLib.Person()
|
person = RelLib.Person()
|
||||||
person.set_gender(RelLib.Person.MALE)
|
person.set_gender(RelLib.Person.MALE)
|
||||||
EditPerson(self.dbstate,self.uistate,[],person, self.new_father_added)
|
EditPerson(self.dbstate, self.uistate, self.track,
|
||||||
|
person, self.new_father_added)
|
||||||
|
|
||||||
def new_mother_added(self, person):
|
def new_mother_added(self, person):
|
||||||
self.obj.set_mother_handle(person.handle)
|
self.obj.set_mother_handle(person.handle)
|
||||||
|
Loading…
Reference in New Issue
Block a user