From 705ae9075d4632be899915f02d84cbfc4977b029 Mon Sep 17 00:00:00 2001 From: prculley Date: Fri, 3 Feb 2017 18:04:17 -0600 Subject: [PATCH] Fix TreeBaseModel so that filters have correct transient parent --- gramps/gui/views/treemodels/treebasemodel.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/gramps/gui/views/treemodels/treebasemodel.py b/gramps/gui/views/treemodels/treebasemodel.py index b6ea8e4a2..f7127c488 100644 --- a/gramps/gui/views/treemodels/treebasemodel.py +++ b/gramps/gui/views/treemodels/treebasemodel.py @@ -587,7 +587,8 @@ class TreeBaseModel(GObject.GObject, Gtk.TreeModel, BaseModel): self.__total += items assert not skip if dfilter: - for handle in dfilter.apply(self.db, user=User()): + for handle in dfilter.apply(self.db, + user=User(parent=self.uistate.window)): status_ppl.heartbeat() data = data_map(handle) add_func(handle, data)