mirror of
https://github.com/ankitects/anki.git
synced 2025-09-24 08:46:37 -04:00
make sure alignment set on load
This commit is contained in:
parent
8e8cd73d5d
commit
8835f079d4
1 changed files with 1 additions and 8 deletions
|
@ -167,6 +167,7 @@ class CardLayout(QDialog):
|
|||
self.form.cardAnswer.setPlainText(self.formatToScreen(card.aformat))
|
||||
self.form.questionInAnswer.setChecked(card.questionInAnswer)
|
||||
self.form.allowEmptyAnswer.setChecked(card.allowEmptyAnswer)
|
||||
self.form.alignment.setCurrentIndex(card.questionAlign)
|
||||
self.form.typeAnswer.clear()
|
||||
self.typeFieldNames = self.deck.s.column0("""
|
||||
select fieldModels.name as n from fieldModels, cardModels
|
||||
|
@ -183,14 +184,6 @@ order by n""", id=card.id)
|
|||
self.form.typeAnswer.setCurrentIndex(idx + 1)
|
||||
self.updatingCards = False
|
||||
|
||||
# def updateField(self, obj, field, value):
|
||||
# if getattr(obj, field) != value:
|
||||
# setattr(obj, field, value)
|
||||
# self.model.setModified()
|
||||
# self.deck.setModified()
|
||||
# return True
|
||||
# return False
|
||||
|
||||
def fillCardList(self):
|
||||
self.form.cardList.clear()
|
||||
self.form.cardList.addItems(
|
||||
|
|
Loading…
Reference in a new issue