From 73bc4812368fa937f472036e8001825b040d3150 Mon Sep 17 00:00:00 2001 From: Damien Elmes Date: Sun, 7 Jun 2009 02:18:43 +0900 Subject: [PATCH] fix changing model in editor not updating --- ankiqt/ui/addcards.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/ankiqt/ui/addcards.py b/ankiqt/ui/addcards.py index 72645069f..f5a2cce00 100644 --- a/ankiqt/ui/addcards.py +++ b/ankiqt/ui/addcards.py @@ -54,7 +54,8 @@ class AddCards(QDialog): def addChooser(self): self.modelChooser = ui.modelchooser.ModelChooser(self, self.parent, - self.parent.deck) + self.parent.deck, + self.modelChanged) self.dialog.modelArea.setLayout(self.modelChooser) def helpRequested(self): @@ -98,7 +99,7 @@ class AddCards(QDialog): browser.updateSearch() browser.onFact() - def modelChanged(self): + def modelChanged(self, model=None): oldFact = self.editor.fact # create a new fact fact = self.parent.deck.newFact()