From cad3871523387e6411c822b13e3936e55b16d0a6 Mon Sep 17 00:00:00 2001 From: SNoiraud Date: Tue, 31 Jan 2017 10:21:08 +0100 Subject: [PATCH] Geography : use progressmeter when filtering. --- gramps/plugins/view/geoevents.py | 3 ++- gramps/plugins/view/geoplaces.py | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/gramps/plugins/view/geoevents.py b/gramps/plugins/view/geoevents.py index c2ae6a6bc..8359136ad 100644 --- a/gramps/plugins/view/geoevents.py +++ b/gramps/plugins/view/geoevents.py @@ -299,7 +299,8 @@ class GeoEvents(GeoGraphyView): progress.step() progress.close() elif self.generic_filter: - events_list = self.generic_filter.apply(dbstate.db) + user=self.uistate.viewmanager.user + events_list = self.generic_filter.apply(dbstate.db, user=user) progress = ProgressMeter(self.window_name, can_cancel=False, parent=self.uistate.window) diff --git a/gramps/plugins/view/geoplaces.py b/gramps/plugins/view/geoplaces.py index 7f94c4423..ee1e787ea 100644 --- a/gramps/plugins/view/geoplaces.py +++ b/gramps/plugins/view/geoplaces.py @@ -349,7 +349,8 @@ class GeoPlaces(GeoGraphyView): progress.step() progress.close() elif self.generic_filter: - place_list = self.generic_filter.apply(dbstate.db) + user=self.uistate.viewmanager.user + place_list = self.generic_filter.apply(dbstate.db, user=user) progress = ProgressMeter(self.window_name, can_cancel=False, parent=self.uistate.window)