From e2cbfd1916150042759fcb5f5e7603fddd4b35fc Mon Sep 17 00:00:00 2001 From: Damien Elmes Date: Wed, 27 Jan 2010 20:06:24 +0900 Subject: [PATCH] don't clear window only to write to it again --- ankiqt/ui/view.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ankiqt/ui/view.py b/ankiqt/ui/view.py index 93903e21b..d8faa9c3c 100644 --- a/ankiqt/ui/view.py +++ b/ankiqt/ui/view.py @@ -52,7 +52,7 @@ class View(object): "Idempotently display the current state (prompt for question, etc)" if self.state == "noDeck" or self.state == "studyScreen": return - self.clearWindow() + self.buffer = "" self.haveTop = (self.main.lastCard and ( self.main.config['showLastCardContent'] or self.main.config['showLastCardInterval'])) or ( @@ -196,7 +196,7 @@ class View(object): txt = txt.replace("", "​") return txt - def onLoadFinished(self): + def onLoadFinished(self, bool): if self.state == "showAnswer": if self.main.config['scrollToAnswer']: mf = self.body.page().mainFrame()