diff --git a/qt/aqt/sidebar.py b/qt/aqt/sidebar.py index 2aef97283..246d4ed50 100644 --- a/qt/aqt/sidebar.py +++ b/qt/aqt/sidebar.py @@ -815,12 +815,13 @@ class SidebarTreeView(QTreeView): type=SidebarItemType.DECK_ROOT, ) root.on_click = self._filter_func(SearchTerm(deck="*")) - root.add_simple( + current = root.add_simple( name=tr(TR.BROWSING_CURRENT_DECK), icon=icon, type=SidebarItemType.DECK, on_click=self._filter_func(SearchTerm(deck="current")), ) + current.id = self.mw.col.decks.selected() render(root, tree.children)