mirror of
https://github.com/ankitects/anki.git
synced 2025-11-09 14:17:13 -05:00
make sure we switch to the correct card when coming from modelprops
This commit is contained in:
parent
0d72810034
commit
13abebf4a7
1 changed files with 3 additions and 1 deletions
|
|
@ -92,7 +92,9 @@ class CardLayout(QDialog):
|
|||
# hack to ensure we're focused on the active template in the model
|
||||
# properties
|
||||
if type == 2 and factOrModel.currentCard.ordinal != 0:
|
||||
self.form.cardList.setCurrentIndex(factOrModel.currentCard.ordinal)
|
||||
idx = factOrModel.currentCard.ordinal
|
||||
self.form.cardList.setCurrentIndex(idx)
|
||||
self.cardChanged(idx)
|
||||
self.exec_()
|
||||
|
||||
# Cards & Preview
|
||||
|
|
|
|||
Loading…
Reference in a new issue