7770: Always display main participants
This commit is contained in:
parent
57209001cb
commit
bbe5e0ec84
@ -152,8 +152,4 @@ class EventRefModel(gtk.TreeStore):
|
|||||||
return u""
|
return u""
|
||||||
|
|
||||||
def column_participant(self, event_ref):
|
def column_participant(self, event_ref):
|
||||||
if int(event_ref.get_role()) not in (EventRoleType.PRIMARY,
|
return Utils.get_participant_from_event(self.db, event_ref.ref)
|
||||||
EventRoleType.FAMILY):
|
|
||||||
return Utils.get_participant_from_event(self.db, event_ref.ref)
|
|
||||||
else:
|
|
||||||
return ""
|
|
||||||
|
@ -95,10 +95,8 @@ class Events(Gramplet, DbGUIElement):
|
|||||||
if spouse:
|
if spouse:
|
||||||
participants = name_displayer.display(spouse)
|
participants = name_displayer.display(spouse)
|
||||||
|
|
||||||
if int(event_ref.get_role()) not in (EventRoleType.PRIMARY,
|
participants = Utils.get_participant_from_event(self.dbstate.db,
|
||||||
EventRoleType.FAMILY):
|
event_ref.ref)
|
||||||
participants = Utils.get_participant_from_event(self.dbstate.db,
|
|
||||||
event_ref.ref)
|
|
||||||
|
|
||||||
self.model.add((event.get_handle(),
|
self.model.add((event.get_handle(),
|
||||||
str(event.get_type()),
|
str(event.get_type()),
|
||||||
|
Loading…
x
Reference in New Issue
Block a user