From 3ba44b940147c67f7f776209121c705665a40d09 Mon Sep 17 00:00:00 2001 From: ꦌꦫꦶꦏ꧀ꦦꦿꦧꦮꦑꦩꦭ꧀ Date: Sat, 17 Jun 2023 08:03:52 +0800 Subject: Fix the offset to start item quantity role from It should've been changed when the option type field was added. --- interchange/ord.hxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/interchange/ord.hxx b/interchange/ord.hxx index a7e41a7..514c480 100644 --- a/interchange/ord.hxx +++ b/interchange/ord.hxx @@ -11,7 +11,7 @@ namespace QInterchange { struct Item : public Product { enum ItemRoles { - QuantityRole = Product::PriceRole + 1, + QuantityRole = Product::OptionTypeRole + 1, NameRole }; Item(interchange_ord_item *item) : -- cgit v1.3