mirror of
https://github.com/ankitects/anki.git
synced 2025-09-24 16:56:36 -04:00
fix for sample card changing when editing from main window
This commit is contained in:
parent
c92a00d90b
commit
c10068efc6
2 changed files with 2 additions and 2 deletions
|
@ -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:
|
||||
|
|
|
@ -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):
|
||||
|
|
Loading…
Reference in a new issue