8096: Fix new event default type considering existing events with *default* role
This commit is contained in:
parent
5e718ac0ca
commit
8ca9a9cccf
@ -214,6 +214,7 @@ class EventEmbedList(DbGUIElement, GroupEmbeddedList):
|
|||||||
|
|
||||||
event = None
|
event = None
|
||||||
for event_ref in self.get_data()[0]:
|
for event_ref in self.get_data()[0]:
|
||||||
|
if event_ref.get_role() == self.default_role():
|
||||||
event = self.dbstate.db.get_event_from_handle(event_ref.ref)
|
event = self.dbstate.db.get_event_from_handle(event_ref.ref)
|
||||||
type_list.append(event.get_type())
|
type_list.append(event.get_type())
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user