From 78d7ae388e3daba4f11c29bb8bea3296f1085c79 Mon Sep 17 00:00:00 2001 From: Damien Elmes Date: Mon, 2 Oct 2017 17:21:34 +1000 Subject: [PATCH] make sure we clear the queue when previewing attached --- aqt/editor.py | 1 + 1 file changed, 1 insertion(+) diff --git a/aqt/editor.py b/aqt/editor.py index 0db296fb4..d04fd842e 100644 --- a/aqt/editor.py +++ b/aqt/editor.py @@ -560,6 +560,7 @@ to a cloze type first, via Edit>Change Note Type.""")) name = urllib.parse.quote(fname.encode("utf8")) return '' % name else: + anki.sound.clearAudioQueue() anki.sound.play(fname) return '[sound:%s]' % fname