Use new database convenience function

Fixes bug introduced in commit 875242c8d6.
This commit is contained in:
Nick Hall 2017-10-26 18:58:22 +01:00
parent 949cd6aae6
commit c495edc220

View File

@ -808,7 +808,7 @@ class ListView(NavigationView):
self.build_tree() self.build_tree()
# Reselect one, if it still exists after rebuild: # Reselect one, if it still exists after rebuild:
nav_type = self.navigation_type() 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: for handle in selected_ids:
# Still exist? # Still exist?
try: try: