Use new database convenience function
Fixes bug introduced in commit 875242c8d6
.
This commit is contained in:
parent
949cd6aae6
commit
c495edc220
@ -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:
|
||||||
|
Loading…
Reference in New Issue
Block a user