diff options
| author | ꦌ ꦫꦶ ꦏ꧀ꦦꦿ ꦧ ꦮ ꦑ ꦩ ꦭ꧀ <erik@darapsa.co.id> | 2020-06-26 18:31:07 +0800 |
|---|---|---|
| committer | ꦌ ꦫꦶ ꦏ꧀ꦦꦿ ꦧ ꦮ ꦑ ꦩ ꦭ꧀ <erik@darapsa.co.id> | 2020-06-26 18:31:07 +0800 |
| commit | b3bd2a24af0047e4e21cde4400cf12b68840b726 (patch) | |
| tree | 6252f47b57d93b0bb65a0f5bcbb26c8dd1d99d60 /client.cxx | |
| parent | 0b475ccda2d4f7e8a6a5d5974646b753fecb2c59 (diff) | |
gotFlyPage emits C++ version of product
Diffstat (limited to 'client.cxx')
| -rw-r--r-- | client.cxx | 4 |
1 files changed, 3 insertions, 1 deletions
@@ -1,6 +1,8 @@ #include <cstddef> +#include <QObject> #include <icclient/client.h> #include <icclient/member.h> +#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<Product>{new ICClient::Product{product}}); } void Client::order(icclient_ord_order** orderPtr, QString const& sku |