mirror of
https://github.com/ankitects/anki.git
synced 2026-01-10 04:23:54 -05:00
Checking for None
This commit is contained in:
parent
037c45d03c
commit
ad7bd2ad1e
1 changed files with 1 additions and 1 deletions
|
|
@ -95,7 +95,7 @@ class CustomStudy(QDialog):
|
||||||
text_after_spinner = tr.custom_study_cards()
|
text_after_spinner = tr.custom_study_cards()
|
||||||
title_text = ""
|
title_text = ""
|
||||||
show_cram_type = False
|
show_cram_type = False
|
||||||
enable_ok_button = self.card_count > 0
|
enable_ok_button = self.card_count is not None and self.card_count > 0
|
||||||
ok = tr.custom_study_ok()
|
ok = tr.custom_study_ok()
|
||||||
|
|
||||||
if idx == RADIO_NEW:
|
if idx == RADIO_NEW:
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue