mirror of
https://github.com/ankitects/anki.git
synced 2025-09-23 00:12:25 -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):
|
def editHistory(self, nid):
|
||||||
browser = aqt.dialogs.open("Browser", self.mw)
|
browser = aqt.dialogs.open("Browser", self.mw)
|
||||||
browser.form.searchEdit.setText("nid:%d" % nid)
|
browser.form.searchEdit.lineEdit().setText("nid:%d" % nid)
|
||||||
browser.onSearch()
|
browser.onSearch()
|
||||||
|
|
||||||
def addNote(self, note):
|
def addNote(self, note):
|
||||||
|
|
|
@ -549,7 +549,7 @@ class Editor(object):
|
||||||
def showDupes(self):
|
def showDupes(self):
|
||||||
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.lineEdit().setText(
|
||||||
"'note:%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'],
|
||||||
|
|
Loading…
Reference in a new issue