mirror of
https://github.com/ankitects/anki.git
synced 2025-11-08 13:47:13 -05:00
ensure failed max >= 2
This commit is contained in:
parent
cd1bf3a645
commit
65012283ec
1 changed files with 1 additions and 1 deletions
|
|
@ -240,7 +240,7 @@ class DeckProperties(QDialog):
|
|||
v = float(self.dialog.delay2.text())
|
||||
self.updateField(self.d, 'delay2', v)
|
||||
v = int(self.dialog.failedCardMax.text())
|
||||
self.updateField(self.d, 'failedCardMax', v)
|
||||
self.updateField(self.d, 'failedCardMax', max(v, 2))
|
||||
except ValueError:
|
||||
pass
|
||||
try:
|
||||
|
|
|
|||
Loading…
Reference in a new issue