diff --git a/src/EventEdit.py b/src/EventEdit.py index 58d0bd8ed..fd1ad4a68 100644 --- a/src/EventEdit.py +++ b/src/EventEdit.py @@ -50,7 +50,10 @@ class EventEditor: self.parent = parent self.event = event self.trans = trans - self.srcreflist = self.event.getSourceRefList() + if event: + self.srcreflist = self.event.getSourceRefList() + else: + self.srcreflist = [] self.top = libglade.GladeXML(const.dialogFile, "event_edit") self.window = self.top.get_widget("event_edit") self.name_field = self.top.get_widget("eventName")