fix for sample card changing when editing from main window

This commit is contained in:
Damien Elmes 2010-12-12 20:02:46 +09:00
parent c92a00d90b
commit c10068efc6
2 changed files with 2 additions and 2 deletions

View file

@ -29,7 +29,7 @@ class CardLayout(QDialog):
self.deck = self.mw.deck
self.factedit = factedit
self.card = card
if factedit:
if factedit is not None:
self.fact = factOrModel
self.model = self.fact.model
else:

View file

@ -1915,7 +1915,7 @@ learnt today")
self.moveToState("editCurrentFact")
def onCardLayout(self):
ui.clayout.CardLayout(self, None, self.currentCard.fact.model,
ui.clayout.CardLayout(self, 0, self.currentCard.fact,
card=self.currentCard)
def onDeckProperties(self):