mirror of
https://github.com/ankitects/anki.git
synced 2025-09-22 07:52:24 -04:00
fix show duplicates and history buttons
This commit is contained in:
parent
b57b2aa66a
commit
16ae17038e
2 changed files with 2 additions and 2 deletions
|
@ -123,7 +123,7 @@ class AddCards(QDialog):
|
|||
|
||||
def editHistory(self, nid):
|
||||
browser = aqt.dialogs.open("Browser", self.mw)
|
||||
browser.form.searchEdit.setText("nid:%d" % nid)
|
||||
browser.form.searchEdit.lineEdit().setText("nid:%d" % nid)
|
||||
browser.onSearch()
|
||||
|
||||
def addNote(self, note):
|
||||
|
|
|
@ -549,7 +549,7 @@ class Editor(object):
|
|||
def showDupes(self):
|
||||
contents = self.note.fields[0]
|
||||
browser = aqt.dialogs.open("Browser", self.mw)
|
||||
browser.form.searchEdit.setText(
|
||||
browser.form.searchEdit.lineEdit().setText(
|
||||
"'note:%s' '%s:%s'" % (
|
||||
self.note.model()['name'],
|
||||
self.note.model()['flds'][0]['name'],
|
||||
|
|
Loading…
Reference in a new issue