Custom filters based on currently selected person(s)

Unfortunately the tree view is currently a problem. In gui/views/treebasemodel.py at about 590 the filter is initialized with a dummy ‘User’ class, instead of the current GUI user. So we will have to put a fix into the Gramps main code to deal with this.

The new lines should like:

        for handle in dfilter.apply(cdb, tree=True,
                                    user=User(parent=self.uistate.window,
                                              uistate=self.uistate)):

You can tell I did not test in Person Treeview…

2 Likes