From 69572ddf45733862bc6b623091af25e396b0d06f 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 17:06:33 +0800 Subject: SKU could be empty --- qicclient/product.hxx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'qicclient') 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) -- cgit v1.2.3