diff --git a/ankiqt/ui/modelproperties.py b/ankiqt/ui/modelproperties.py index 4e330bc8b..35c48b48a 100644 --- a/ankiqt/ui/modelproperties.py +++ b/ankiqt/ui/modelproperties.py @@ -169,7 +169,7 @@ class ModelProperties(QDialog): else: aformat = "" cm = CardModel(name, qformat, aformat) - self.m.addCardModel(cm) + self.deck.addCardModel(m, cm) self.updateCards() self.dialog.cardList.setCurrentRow(len(self.m.cardModels)-1)