mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
Fix exception in tag browser/view when a category goes away
This commit is contained in:
parent
7f84408da2
commit
c3eb10f51d
@ -575,6 +575,7 @@ class TagsView(QTreeView): # {{{
|
||||
expanded_categories, state_map = self.get_state()
|
||||
self._model.rebuild_node_tree(state_map=state_map)
|
||||
for category in expanded_categories:
|
||||
if self._model.index_for_category(category) is not None:
|
||||
self.expand(self._model.index_for_category(category))
|
||||
self.show_item_at_path(path)
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user