mirror of
https://github.com/ankitects/anki.git
synced 2025-09-20 23:12:21 -04:00
clear audio before previewing card
This commit is contained in:
parent
014c993688
commit
a2713450a7
1 changed files with 2 additions and 1 deletions
|
@ -8,7 +8,7 @@ from PyQt4.QtSvg import *
|
||||||
from PyQt4.QtWebKit import QWebPage
|
from PyQt4.QtWebKit import QWebPage
|
||||||
import re, os, sys, tempfile, urllib2, ctypes
|
import re, os, sys, tempfile, urllib2, ctypes
|
||||||
from anki.utils import stripHTML, tidyHTML, canonifyTags
|
from anki.utils import stripHTML, tidyHTML, canonifyTags
|
||||||
from anki.sound import playFromText
|
from anki.sound import playFromText, clearAudioQueue
|
||||||
from ankiqt.ui.sound import getAudio
|
from ankiqt.ui.sound import getAudio
|
||||||
import anki.sound
|
import anki.sound
|
||||||
from ankiqt import ui
|
from ankiqt import ui
|
||||||
|
@ -1135,6 +1135,7 @@ class PreviewDialog(QDialog):
|
||||||
runFilter("drawAnswer", mungeQA(self.deck, c.htmlAnswer()),
|
runFilter("drawAnswer", mungeQA(self.deck, c.htmlAnswer()),
|
||||||
c)
|
c)
|
||||||
+ "</body></html>")
|
+ "</body></html>")
|
||||||
|
clearAudioQueue()
|
||||||
playFromText(c.question)
|
playFromText(c.question)
|
||||||
playFromText(c.answer)
|
playFromText(c.answer)
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue