add help link

This commit is contained in:
Damien Elmes 2009-02-08 00:02:41 +09:00
parent 828f9fa5aa
commit 65d6194760

View file

@ -628,6 +628,11 @@ class FactEditor(object):
ui.utils.showInfo(_("Next field must be blank."), ui.utils.showInfo(_("Next field must be blank."),
parent=self.parent) parent=self.parent)
return return
# check if there's anything to change
if not re.search("\(.+?\)", unicode(src.toPlainText())):
QDesktopServices.openUrl(QUrl(ankiqt.appWiki +
"ClozeDeletion"))
return
# create # create
s = unicode(src.toHtml()) s = unicode(src.toHtml())
def repl(match): def repl(match):