summaryrefslogtreecommitdiff
path: root/catalog.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'catalog.cxx')
-rw-r--r--catalog.cxx4
1 files changed, 3 insertions, 1 deletions
diff --git a/catalog.cxx b/catalog.cxx
index 0fe8a20..61fd0fd 100644
--- a/catalog.cxx
+++ b/catalog.cxx
@@ -6,6 +6,7 @@
namespace ICClient {
Catalog::Catalog(icclient_catalog* catalog, QObject* parent) :
+ catalog{catalog},
QAbstractListModel{parent}
{
for (size_t i = 0; i < catalog->length; i++)
@@ -90,8 +91,9 @@ namespace ICClient {
product.author = catalog->data(index, Product::AuthorRole).toString();
product.crossSell = catalog->data(index, Product::CrossSellRole).toStringList();
addProduct(product);
- emit updated();
}
+ this->catalog = const_cast<icclient_catalog*>(catalog->c_catalog());
+ emit updated();
}
}