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.
This commit is contained in:
Damien Elmes 2020-05-15 14:50:57 +10:00
parent 68e1303880
commit ed52a4dc3f

View File

@ -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