summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorꦌ ꦫꦶ ꦏ꧀ꦦꦿ ꦧ ꦮ ꦑ ꦩ ꦭ꧀ <erik@darapsa.co.id>2020-06-14 10:04:42 +0800
committerꦌ ꦫꦶ ꦏ꧀ꦦꦿ ꦧ ꦮ ꦑ ꦩ ꦭ꧀ <erik@darapsa.co.id>2020-06-14 10:04:42 +0800
commit1f3b30fd4c989f69e01614b4a021546a8d69bb96 (patch)
tree2856b8fdd8c49fc5665944375c693386f73b6e93
parent08d424a58c3802b54479701014c1e8ac0a6dbb34 (diff)
Price = 0 shouldn't be ignored
-rw-r--r--qicclient/product.hxx6
1 files 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};
}