summaryrefslogtreecommitdiff
path: root/client.cxx
diff options
context:
space:
mode:
authorꦌ ꦫꦶ ꦏ꧀ꦦꦿ ꦧ ꦮ ꦑ ꦩ ꦭ꧀ <erik@darapsa.co.id>2019-09-29 07:40:23 +0800
committerꦌ ꦫꦶ ꦏ꧀ꦦꦿ ꦧ ꦮ ꦑ ꦩ ꦭ꧀ <erik@darapsa.co.id>2019-09-29 07:40:23 +0800
commit0640cec9e13edd30b85c50da9943f6fb56aec0df (patch)
treeec90c7813db12ecb1ed9885da9f01f718ba67db9 /client.cxx
parent73851e44295b0a1e1963689036a0f60c4cbb8330 (diff)
Revert "Client triggers catalog to update directly"
This reverts commit 73851e44295b0a1e1963689036a0f60c4cbb8330.
Diffstat (limited to 'client.cxx')
-rw-r--r--client.cxx6
1 files changed, 2 insertions, 4 deletions
diff --git a/client.cxx b/client.cxx
index 168a0fc..4e832ce 100644
--- a/client.cxx
+++ b/client.cxx
@@ -14,13 +14,11 @@ namespace ICClient {
icclient_cleanup();
}
- void Client::allProducts(Catalog* qCatalog, size_t (*handler)(void*, size_t
- , size_t, void*))
+ void Client::allProducts(size_t (*handler)(void*, size_t, size_t, void*))
{
icclient_catalog* catalog = nullptr;
icclient_allproducts(&catalog, handler);
- if (catalog) qCatalog->update(catalog);
- icclient_product_freecatalog(catalog);
+ emit gotAllProducts(catalog);
}
void Client::logIn(QString const& username, QString const& password)