mirror of
https://github.com/ankitects/anki.git
synced 2025-09-24 16:56:36 -04:00
fix concat of mid searches
This commit is contained in:
parent
23650f6ee0
commit
ead1f005ec
1 changed files with 1 additions and 1 deletions
|
@ -778,7 +778,7 @@ by clicking on one on the left."""))
|
||||||
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("mid", m['id']))
|
m['name'], lambda m=m: self.setFilter("mid", str(m['id'])))
|
||||||
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