From b9676149a32f022957dfd0dfa2705485377f8c04 Mon Sep 17 00:00:00 2001 From: Damien Elmes Date: Fri, 6 Feb 2009 19:19:16 +0900 Subject: [PATCH] make sure help doesn't pop back up w/ card stats --- ankiqt/ui/help.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/ankiqt/ui/help.py b/ankiqt/ui/help.py index b8a77dfd7..564b127b9 100644 --- a/ankiqt/ui/help.py +++ b/ankiqt/ui/help.py @@ -21,6 +21,7 @@ class HelpArea(object): else: self.focus=focus self.config = config + self.handlers = [] self.widget.connect(self.widget, SIGNAL("anchorClicked(QUrl)"), self.anchorClicked) if sys.platform.startswith("darwin"): @@ -39,6 +40,8 @@ class HelpArea(object): runHook("helpChanged") def showText(self, text, py={}): + if "hide" in self.handlers: + self.handlers["hide"]() self.show() self.buffer = text self.addHider()