From ed52a4dc3ffe8abb424bd9b8a94bc21cb13c9f3b Mon Sep 17 00:00:00 2001 From: Damien Elmes Date: Fri, 15 May 2020 14:50:57 +1000 Subject: [PATCH] when previewing cards, use the default deck for now Replay code needs to be able to retrieve deck options. We should probably use the current deck or pass it in in the future. --- qt/aqt/clayout.py | 1 + 1 file changed, 1 insertion(+) diff --git a/qt/aqt/clayout.py b/qt/aqt/clayout.py index 43e87b8ed..6d0a1a9d4 100644 --- a/qt/aqt/clayout.py +++ b/qt/aqt/clayout.py @@ -478,6 +478,7 @@ class CardLayout(QDialog): def ephemeral_card_for_rendering(self) -> Card: card = Card(self.col) card.ord = self.ord + card.did = 1 template = copy.copy(self.current_template()) # may differ in cloze case template["ord"] = card.ord