diff options
| author | ꦌ ꦫꦶ ꦏ꧀ꦦꦿ ꦧ ꦮ ꦑ ꦩ ꦭ꧀ <erik@darapsa.co.id> | 2019-10-01 06:52:42 +0800 |
|---|---|---|
| committer | ꦌ ꦫꦶ ꦏ꧀ꦦꦿ ꦧ ꦮ ꦑ ꦩ ꦭ꧀ <erik@darapsa.co.id> | 2019-10-01 06:52:42 +0800 |
| commit | d82340151ce274930f42701f5a9a0c4db702cba4 (patch) | |
| tree | ccae79c6970d5650768b22b88a37aa18510e4805 /catalog.cxx | |
| parent | 451437641aee7771b97ac5e54e1543a2510ce17a (diff) | |
| parent | 0f63d288930a71e9705ce1b48a5e0036a9161b52 (diff) | |
Merge branch 'master' into cmake
Diffstat (limited to 'catalog.cxx')
| -rw-r--r-- | catalog.cxx | 4 |
1 files changed, 1 insertions, 3 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(); } |