From 7a4855233b00c8552e170313d4d466c22ca1d14f Mon Sep 17 00:00:00 2001 From: Damien Elmes Date: Sat, 30 May 2009 19:08:03 +0900 Subject: [PATCH] clear audio queue on question, not answer --- ankiqt/ui/main.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ankiqt/ui/main.py b/ankiqt/ui/main.py index a356599b9..f57f9dd44 100644 --- a/ankiqt/ui/main.py +++ b/ankiqt/ui/main.py @@ -275,6 +275,8 @@ Please do not file a bug report with Anki.
""") # hide all deck-associated dialogs self.closeAllDeckWindows() elif state == "getQuestion": + # stop anything playing + clearAudioQueue() if self.deck.isEmpty(): return self.moveToState("deckEmpty") else: @@ -414,8 +416,6 @@ Please do not file a bug report with Anki.
""") stats = self.deck.getStats() if stats['gTotal'] % num == 0: self.save() - # stop anything playing - clearAudioQueue() self.moveToState("getQuestion") def startRefreshTimer(self):