summaryrefslogtreecommitdiff
path: root/client.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'client.cxx')
-rw-r--r--client.cxx6
1 files changed, 4 insertions, 2 deletions
diff --git a/client.cxx b/client.cxx
index 4e832ce..168a0fc 100644
--- a/client.cxx
+++ b/client.cxx
@@ -14,11 +14,13 @@ namespace ICClient {
icclient_cleanup();
}
- void Client::allProducts(size_t (*handler)(void*, size_t, size_t, void*))
+ void Client::allProducts(Catalog* qCatalog, size_t (*handler)(void*, size_t
+ , size_t, void*))
{
icclient_catalog* catalog = nullptr;
icclient_allproducts(&catalog, handler);
- emit gotAllProducts(catalog);
+ if (catalog) qCatalog->update(catalog);
+ icclient_product_freecatalog(catalog);
}
void Client::logIn(QString const& username, QString const& password)