Fixed EventEdit crash when passed a None event (for adding a new event)
svn: r467
This commit is contained in:
parent
a2bb5b5217
commit
5afe6b2418
@ -50,7 +50,10 @@ class EventEditor:
|
|||||||
self.parent = parent
|
self.parent = parent
|
||||||
self.event = event
|
self.event = event
|
||||||
self.trans = trans
|
self.trans = trans
|
||||||
|
if event:
|
||||||
self.srcreflist = self.event.getSourceRefList()
|
self.srcreflist = self.event.getSourceRefList()
|
||||||
|
else:
|
||||||
|
self.srcreflist = []
|
||||||
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