fix replay audio in question

This commit is contained in:
Damien Elmes 2009-06-25 05:37:01 +09:00
parent be0ce798d6
commit 7ee6032b81

View file

@ -2514,7 +2514,8 @@ it to your friends.
def onRepeatAudio(self):
clearAudioQueue()
if not self.currentCard.cardModel.questionInAnswer:
if (not self.currentCard.cardModel.questionInAnswer
or self.state == "showQuestion"):
playFromText(self.currentCard.question)
if self.state != "showQuestion":
playFromText(self.currentCard.answer)