From b3bd2a24af0047e4e21cde4400cf12b68840b726 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: Fri, 26 Jun 2020 18:31:07 +0800 Subject: gotFlyPage emits C++ version of product --- client.cxx | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'client.cxx') diff --git a/client.cxx b/client.cxx index c7950a8..f5c2734 100644 --- a/client.cxx +++ b/client.cxx @@ -1,6 +1,8 @@ #include +#include #include #include +#include "qicclient/product.hxx" #include "qicclient/client.hxx" namespace ICClient { @@ -37,7 +39,7 @@ namespace ICClient { { icclient_product* product = nullptr; icclient_flypage(handler, &product, sku.toLatin1().constData()); - emit gotFlyPage(product); + if (product) emit gotFlyPage(std::shared_ptr{new ICClient::Product{product}}); } void Client::order(icclient_ord_order** orderPtr, QString const& sku -- cgit v1.2.3