mirror of
https://github.com/ankitects/anki.git
synced 2025-11-11 07:07:13 -05:00
ntype -> note
This commit is contained in:
parent
dc82f0ecf6
commit
cc606e180e
2 changed files with 2 additions and 2 deletions
|
|
@ -693,7 +693,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("ntype", m['name']))
|
m['name'], lambda m=m: self.setFilter("note", 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']:
|
||||||
|
|
|
||||||
|
|
@ -489,7 +489,7 @@ class Editor(object):
|
||||||
contents = self.note.fields[0]
|
contents = self.note.fields[0]
|
||||||
browser = aqt.dialogs.open("Browser", self.mw)
|
browser = aqt.dialogs.open("Browser", self.mw)
|
||||||
browser.form.searchEdit.setText(
|
browser.form.searchEdit.setText(
|
||||||
"'ntype:%s' '%s:%s'" % (
|
"'note:%s' '%s:%s'" % (
|
||||||
self.note.model()['name'],
|
self.note.model()['name'],
|
||||||
self.note.model()['flds'][0]['name'],
|
self.note.model()['flds'][0]['name'],
|
||||||
contents))
|
contents))
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue