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.