From c495edc2206391511f1441b2fb07157324456084 Mon Sep 17 00:00:00 2001 From: Nick Hall Date: Thu, 26 Oct 2017 18:58:22 +0100 Subject: [PATCH] Use new database convenience function Fixes bug introduced in commit 875242c8d6f88e91dd839812f11b92a9326d30a2. --- gramps/gui/views/listview.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gramps/gui/views/listview.py b/gramps/gui/views/listview.py index b827180d3..4d43c8bae 100644 --- a/gramps/gui/views/listview.py +++ b/gramps/gui/views/listview.py @@ -808,7 +808,7 @@ class ListView(NavigationView): self.build_tree() # Reselect one, if it still exists after rebuild: nav_type = self.navigation_type() - lookup_handle = getattr(self.dbstate.db, 'get_%s_from_handle' % nav_type) + lookup_handle = self.dbstate.db.method('get_%s_from_handle', nav_type) for handle in selected_ids: # Still exist? try: