From bbe5e0ec84ebf07b30241bca9204c9f51a0ee3ef Mon Sep 17 00:00:00 2001 From: Nick Hall Date: Wed, 21 Jan 2015 18:56:43 +0000 Subject: [PATCH] 7770: Always display main participants --- src/gui/editors/displaytabs/eventrefmodel.py | 6 +----- src/plugins/gramplet/Events.py | 6 ++---- 2 files changed, 3 insertions(+), 9 deletions(-) diff --git a/src/gui/editors/displaytabs/eventrefmodel.py b/src/gui/editors/displaytabs/eventrefmodel.py index 0e409c8c4..cfb7412db 100644 --- a/src/gui/editors/displaytabs/eventrefmodel.py +++ b/src/gui/editors/displaytabs/eventrefmodel.py @@ -152,8 +152,4 @@ class EventRefModel(gtk.TreeStore): return u"" def column_participant(self, event_ref): - if int(event_ref.get_role()) not in (EventRoleType.PRIMARY, - EventRoleType.FAMILY): - return Utils.get_participant_from_event(self.db, event_ref.ref) - else: - return "" + return Utils.get_participant_from_event(self.db, event_ref.ref) diff --git a/src/plugins/gramplet/Events.py b/src/plugins/gramplet/Events.py index 1bf1c4cb4..58f5b6adf 100644 --- a/src/plugins/gramplet/Events.py +++ b/src/plugins/gramplet/Events.py @@ -95,10 +95,8 @@ class Events(Gramplet, DbGUIElement): if spouse: participants = name_displayer.display(spouse) - if int(event_ref.get_role()) not in (EventRoleType.PRIMARY, - EventRoleType.FAMILY): - participants = Utils.get_participant_from_event(self.dbstate.db, - event_ref.ref) + participants = Utils.get_participant_from_event(self.dbstate.db, + event_ref.ref) self.model.add((event.get_handle(), str(event.get_type()),