diff options
-rw-r--r-- | catalog.cxx | 4 | ||||
m--------- | libicclient | 10 |
2 files changed, 6 insertions, 8 deletions
diff --git a/catalog.cxx b/catalog.cxx index 17702bc..8664cdc 100644 --- a/catalog.cxx +++ b/catalog.cxx @@ -51,11 +51,9 @@ namespace ICClient { void Catalog::update(icclient_catalog* catalog) { - if (catalog) { + if (catalog) for (size_t i = 0; i < catalog->length; i++) addProduct(Product{catalog->products[i]}); - icclient_product_freecatalog(catalog); - } emit updated(); } diff --git a/libicclient b/libicclient -Subproject de16cb072e348fed875232c58cee7dfee5d9766 +Subproject bf59ffd31aeb3a328a489205ecbc45c194cfa5d |