* src/FamilyView.py: initialize Family

svn: r5916
This commit is contained in:
Don Allingham 2006-02-10 04:20:57 +00:00
parent bf345dc2cf
commit 8edb0798e2
2 changed files with 3 additions and 1 deletions

View File

@ -1,4 +1,5 @@
2006-02-09 Don Allingham <don@gramps-project.org>
* src/FamilyView.py: initialize Family
* src/EditFamily.py: fix empty gramps_id for new families
* src/GrampsWidgets.py: fix empty gramps_id for new families
* src/DisplayTabs.py: fix editing of person events

View File

@ -572,7 +572,8 @@ class FamilyView(PageView.PersonNavView):
def add_family(self,obj,event,handle):
if event.type == gtk.gdk.BUTTON_PRESS and event.button == 1:
import EditFamily
EditFamily.EditFamily(self.dbstate,self.uistate,[],None)
family = RelLib.Family()
EditFamily.EditFamily(self.dbstate,self.uistate,[],family)
def delete_family(self,obj,event,handle):
if event.type == gtk.gdk.BUTTON_PRESS and event.button == 1: