From f092144a9331b17dd80124cffafbbe94ee89a1b2 Mon Sep 17 00:00:00 2001 From: romjerome Date: Tue, 24 Jan 2017 17:24:00 +0100 Subject: [PATCH] 9908: Custom Family Relations not shown in the filter siderbar --- gramps/gui/filters/sidebar/_familysidebarfilter.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/gramps/gui/filters/sidebar/_familysidebarfilter.py b/gramps/gui/filters/sidebar/_familysidebarfilter.py index a4582b336..abf8acd8d 100644 --- a/gramps/gui/filters/sidebar/_familysidebarfilter.py +++ b/gramps/gui/filters/sidebar/_familysidebarfilter.py @@ -71,6 +71,7 @@ class FamilySidebarFilter(SidebarFilter): self.family_stub = Family() self.family_stub.set_relationship((FamilyRelType.CUSTOM, '')) self.rtype = Gtk.ComboBox(has_entry=True) + self.custom_types = dbstate.db.get_family_relation_types() self.event_menu = widgets.MonitoredDataType( self.etype, @@ -80,7 +81,8 @@ class FamilySidebarFilter(SidebarFilter): self.rel_menu = widgets.MonitoredDataType( self.rtype, self.family_stub.set_relationship, - self.family_stub.get_relationship) + self.family_stub.get_relationship, + custom_values=self.custom_types) self.filter_note = widgets.BasicEntry()