summaryrefslogtreecommitdiff
path: root/qicclient
diff options
context:
space:
mode:
authorꦌ ꦫꦶ ꦏ꧀ꦦꦿ ꦧ ꦮ ꦑ ꦩ ꦭ꧀ <erik@darapsa.co.id>2020-06-14 17:06:33 +0800
committerꦌ ꦫꦶ ꦏ꧀ꦦꦿ ꦧ ꦮ ꦑ ꦩ ꦭ꧀ <erik@darapsa.co.id>2020-06-14 17:06:33 +0800
commit69572ddf45733862bc6b623091af25e396b0d06f (patch)
treeb134dd20814b8c2bbed373cd9a627469a6dd94e2 /qicclient
parent997ac1ef848ec9cf14ad2ab69c78a8ef230864e7 (diff)
SKU could be empty
Diffstat (limited to 'qicclient')
-rw-r--r--qicclient/product.hxx3
1 files changed, 2 insertions, 1 deletions
diff --git a/qicclient/product.hxx b/qicclient/product.hxx
index 97b13b2..d07339d 100644
--- a/qicclient/product.hxx
+++ b/qicclient/product.hxx
@@ -18,10 +18,11 @@ namespace ICClient {
};
Product(icclient_product* product) :
- sku{product->sku},
price{product->price},
weight{product->weight}
{
+ if (product->sku)
+ sku = QString{product->sku};
if (product->description)
description = QString{product->description};
if (product->comment)