make sure we switch to the correct card when coming from modelprops

This commit is contained in:
Damien Elmes 2011-01-26 11:04:00 +09:00
parent 0d72810034
commit 13abebf4a7

View file

@ -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