From 1f3b30fd4c989f69e01614b4a021546a8d69bb96 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=EA=A6=8C=20=EA=A6=AB=EA=A6=B6=20=EA=A6=8F=EA=A7=80?= =?UTF-8?q?=EA=A6=A6=EA=A6=BF=20=EA=A6=A7=20=EA=A6=AE=20=EA=A6=91=20?= =?UTF-8?q?=EA=A6=A9=20=EA=A6=AD=EA=A7=80?= Date: Sun, 14 Jun 2020 10:04:42 +0800 Subject: Price = 0 shouldn't be ignored --- qicclient/product.hxx | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/qicclient/product.hxx b/qicclient/product.hxx index 4fe67ac..7ab2f99 100644 --- a/qicclient/product.hxx +++ b/qicclient/product.hxx @@ -16,7 +16,9 @@ namespace ICClient { AuthorRole }; - Product(icclient_product* product) : sku{product->sku} + Product(icclient_product* product) : + sku{product->sku}, + price{product->price} { if (product->description) description = QString{product->description}; @@ -24,8 +26,6 @@ namespace ICClient { comment = QString{product->comment}; if (product->image) image = QString{product->image}; - if (product->price) - price = product->price; if (product->author) author = QString{product->author}; } -- cgit v1.2.3