Could not create new events.
svn: r583
This commit is contained in:
parent
17710392b5
commit
47fa862981
@ -52,12 +52,13 @@ class EventEditor:
|
|||||||
def __init__(self,parent,name,list,trans,event,def_placename,read_only):
|
def __init__(self,parent,name,list,trans,event,def_placename,read_only):
|
||||||
self.parent = parent
|
self.parent = parent
|
||||||
self.event = event
|
self.event = event
|
||||||
self.date = Date(event.getDateObj())
|
|
||||||
self.trans = trans
|
self.trans = trans
|
||||||
if event:
|
if event:
|
||||||
self.srcreflist = self.event.getSourceRefList()
|
self.srcreflist = self.event.getSourceRefList()
|
||||||
|
self.date = Date(self.event.getDateObj())
|
||||||
else:
|
else:
|
||||||
self.srcreflist = []
|
self.srcreflist = []
|
||||||
|
self.date = Date(None)
|
||||||
self.top = libglade.GladeXML(const.dialogFile, "event_edit")
|
self.top = libglade.GladeXML(const.dialogFile, "event_edit")
|
||||||
self.window = self.top.get_widget("event_edit")
|
self.window = self.top.get_widget("event_edit")
|
||||||
self.name_field = self.top.get_widget("eventName")
|
self.name_field = self.top.get_widget("eventName")
|
||||||
|
Loading…
Reference in New Issue
Block a user