From 7c225fb5cd7a854ca414a2a7c1f79f4d96dafbb3 Mon Sep 17 00:00:00 2001 From: Damien Elmes Date: Wed, 19 Apr 2023 16:43:23 +1000 Subject: [PATCH] V -> ValueType https://github.com/ankitects/anki/pull/2472#issuecomment-1513507162 --- qt/aqt/clayout.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/qt/aqt/clayout.py b/qt/aqt/clayout.py index ac84e1569..2aba4bce5 100644 --- a/qt/aqt/clayout.py +++ b/qt/aqt/clayout.py @@ -944,7 +944,7 @@ class SelectStockNotetype(QDialog): QDialog.reject(self) def accept(self) -> None: - kind = cast(StockNotetype.Kind.V, self.dialog.models.currentRow()) + kind = cast(StockNotetype.Kind.ValueType, self.dialog.models.currentRow()) QDialog.accept(self) # On Mac, we need to allow time for the existing modal to close or # Qt gets confused.