mirror of
https://github.com/ankitects/anki.git
synced 2025-09-25 01:06:35 -04:00
fix error when review button deselected
https://anki.tenderapp.com/discussions/ankidesktop/29882-selecting-a-button-and-enter-or-space-always-chooses-good
This commit is contained in:
parent
f246cf1062
commit
f3a6472c5c
1 changed files with 1 additions and 1 deletions
|
@ -277,7 +277,7 @@ The front of this card is empty. Please run Tools>Empty Cards.""")
|
|||
|
||||
def _onAnswerButton(self, val):
|
||||
# button selected?
|
||||
if val in "1234":
|
||||
if val and val in "1234":
|
||||
self._answerCard(int(val))
|
||||
else:
|
||||
self._answerCard(self._defaultEase())
|
||||
|
|
Loading…
Reference in a new issue