From 47fa862981f987869ff40e8d0e0b355e04b4a947 Mon Sep 17 00:00:00 2001 From: David Hampton Date: Sun, 25 Nov 2001 22:00:51 +0000 Subject: [PATCH] Could not create new events. svn: r583 --- gramps/src/EventEdit.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/gramps/src/EventEdit.py b/gramps/src/EventEdit.py index 4a954cef9..7b8b9a786 100644 --- a/gramps/src/EventEdit.py +++ b/gramps/src/EventEdit.py @@ -52,12 +52,13 @@ class EventEditor: def __init__(self,parent,name,list,trans,event,def_placename,read_only): self.parent = parent self.event = event - self.date = Date(event.getDateObj()) self.trans = trans if event: self.srcreflist = self.event.getSourceRefList() + self.date = Date(self.event.getDateObj()) else: self.srcreflist = [] + self.date = Date(None) self.top = libglade.GladeXML(const.dialogFile, "event_edit") self.window = self.top.get_widget("event_edit") self.name_field = self.top.get_widget("eventName")