From 65d6194760f108fe51f88b0f5741adce510fe135 Mon Sep 17 00:00:00 2001 From: Damien Elmes Date: Sun, 8 Feb 2009 00:02:41 +0900 Subject: [PATCH] add help link --- ankiqt/ui/facteditor.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/ankiqt/ui/facteditor.py b/ankiqt/ui/facteditor.py index 2036f7ab4..b9e70d59c 100644 --- a/ankiqt/ui/facteditor.py +++ b/ankiqt/ui/facteditor.py @@ -628,6 +628,11 @@ class FactEditor(object): ui.utils.showInfo(_("Next field must be blank."), parent=self.parent) return + # check if there's anything to change + if not re.search("\(.+?\)", unicode(src.toPlainText())): + QDesktopServices.openUrl(QUrl(ankiqt.appWiki + + "ClozeDeletion")) + return # create s = unicode(src.toHtml()) def repl(match):