From ad7bd2ad1e398ac132e42b69c22e2729a4c408e2 Mon Sep 17 00:00:00 2001 From: Emma Plante Date: Sat, 13 Dec 2025 18:07:37 -0500 Subject: [PATCH] Checking for None --- qt/aqt/customstudy.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/qt/aqt/customstudy.py b/qt/aqt/customstudy.py index 2bbf68811..eca1f51c2 100644 --- a/qt/aqt/customstudy.py +++ b/qt/aqt/customstudy.py @@ -95,7 +95,7 @@ class CustomStudy(QDialog): text_after_spinner = tr.custom_study_cards() title_text = "" 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() if idx == RADIO_NEW: