Fix Custom filter update when created via sidebar (#630)

Fixes #10620

Adding a filter via the sidebar editor originally only updated the current view, other associated views did not see the new filter. First noticed in People views. This causes the 'filters-changed' to be emitted which updates all associated view.
This commit is contained in:
Paul Culley 2018-06-21 20:19:00 -05:00 committed by Sam Manzi
parent 663745c7e8
commit ff129e2f64

View File

@ -267,7 +267,7 @@ class SidebarFilter(DbGUIElement):
from gramps.gen.filters import reload_custom_filters from gramps.gen.filters import reload_custom_filters
filterdb.save() filterdb.save()
reload_custom_filters() reload_custom_filters()
self.on_filters_changed(self.namespace) self.uistate.emit('filters-changed', (self.namespace,))
self.set_filters_to_name(filter_name) self.set_filters_to_name(filter_name)
def set_filters_to_name(self, filter_name): def set_filters_to_name(self, filter_name):