From 84a5a1e1336653b9611aea3e6cc9337c856c12fb Mon Sep 17 00:00:00 2001 From: Don Allingham Date: Fri, 10 Feb 2006 04:20:57 +0000 Subject: [PATCH] * src/FamilyView.py: initialize Family svn: r5916 --- gramps2/ChangeLog | 1 + gramps2/src/FamilyView.py | 3 ++- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/gramps2/ChangeLog b/gramps2/ChangeLog index 078d104d2..1f383f700 100644 --- a/gramps2/ChangeLog +++ b/gramps2/ChangeLog @@ -1,4 +1,5 @@ 2006-02-09 Don Allingham + * 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 diff --git a/gramps2/src/FamilyView.py b/gramps2/src/FamilyView.py index 97eedf084..0b24544af 100644 --- a/gramps2/src/FamilyView.py +++ b/gramps2/src/FamilyView.py @@ -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: