mirror of
https://github.com/ankitects/anki.git
synced 2025-09-19 14:32:22 -04:00
jump to editor from add cards area
This commit is contained in:
parent
3855183213
commit
02bc090828
2 changed files with 7 additions and 11 deletions
|
@ -121,11 +121,9 @@ class AddCards(QDialog):
|
|||
m.exec_(self.historyButton.mapToGlobal(QPoint(0,0)))
|
||||
|
||||
def editHistory(self, fid):
|
||||
print "edit", fid
|
||||
# browser = ui.dialogs.open("CardList", self.mw)
|
||||
# browser.dialog.filterEdit.setText("fid:" + url.toString())
|
||||
# browser.updateSearch()
|
||||
# browser.onFact()
|
||||
browser = aqt.dialogs.open("Browser", self.mw)
|
||||
browser.form.searchEdit.setText("fid:%d" % fid)
|
||||
browser.onSearch()
|
||||
|
||||
def addFact(self, fact):
|
||||
if any(fact.problems()):
|
||||
|
|
|
@ -727,6 +727,9 @@ where id in %s""" % ids2str(sf))
|
|||
# but otherwise we can put it off until the user starts studying again
|
||||
print "fixme: resetDeck()"
|
||||
|
||||
def onHelp(self):
|
||||
aqt.openHelp("Browser")
|
||||
|
||||
# Misc menu options
|
||||
######################################################################
|
||||
|
||||
|
@ -962,6 +965,7 @@ where id in %s""" % ids2str(sf))
|
|||
######################################################################
|
||||
|
||||
def onFindDupes(self):
|
||||
return showInfo("not yet implemented")
|
||||
win = QDialog(self)
|
||||
aqt = ankiqt.forms.finddupes.Ui_Dialog()
|
||||
dialog.setupUi(win)
|
||||
|
@ -1087,12 +1091,6 @@ select fm.id, fm.name from fieldmodels fm""")
|
|||
def onCardList(self):
|
||||
self.form.tableView.setFocus()
|
||||
|
||||
# Help
|
||||
######################################################################
|
||||
|
||||
def onHelp(self):
|
||||
aqt.openHelp("Browser")
|
||||
|
||||
# Generate cards
|
||||
######################################################################
|
||||
|
||||
|
|
Loading…
Reference in a new issue