default to button 2 on failed card

This commit is contained in:
Damien Elmes 2008-12-20 18:57:16 +09:00
parent 753fd2ee40
commit 7ad0686928

View file

@ -395,7 +395,10 @@ new:
self.updateEaseButtons() self.updateEaseButtons()
self.mainWin.buttonStack.setCurrentIndex(1) self.mainWin.buttonStack.setCurrentIndex(1)
self.mainWin.buttonStack.show() self.mainWin.buttonStack.show()
self.mainWin.easeButton3.setFocus() if self.currentCard.reps and not self.currentCard.successive:
self.mainWin.easeButton2.setFocus()
else:
self.mainWin.easeButton3.setFocus()
def showSaveEditorButton(self): def showSaveEditorButton(self):
self.mainWin.buttonStack.setCurrentIndex(2) self.mainWin.buttonStack.setCurrentIndex(2)