mirror of
https://github.com/ankitects/anki.git
synced 2025-09-25 01:06:35 -04:00
fix model links in browser
This commit is contained in:
parent
667d7dfb38
commit
198d1592a0
1 changed files with 1 additions and 1 deletions
|
@ -690,7 +690,7 @@ class Browser(QMainWindow):
|
||||||
def _modelTree(self, root):
|
def _modelTree(self, root):
|
||||||
for m in sorted(self.col.models.all(), key=itemgetter("name")):
|
for m in sorted(self.col.models.all(), key=itemgetter("name")):
|
||||||
mitem = self.CallbackItem(
|
mitem = self.CallbackItem(
|
||||||
m['name'], lambda m=m: self.setFilter("model", m['name']))
|
m['name'], lambda m=m: self.setFilter("ntype", m['name']))
|
||||||
mitem.setIcon(0, QIcon(":/icons/product_design.png"))
|
mitem.setIcon(0, QIcon(":/icons/product_design.png"))
|
||||||
root.addChild(mitem)
|
root.addChild(mitem)
|
||||||
# for t in m['tmpls']:
|
# for t in m['tmpls']:
|
||||||
|
|
Loading…
Reference in a new issue