From 5d36cbe8062af072958c37bb9c71b1e158074d3a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=EA=A6=8C=20=EA=A6=AB=EA=A6=B6=20=EA=A6=8F=EA=A7=80?= =?UTF-8?q?=EA=A6=A6=EA=A6=BF=20=EA=A6=A7=20=EA=A6=AE=20=EA=A6=91=20?= =?UTF-8?q?=EA=A6=A9=20=EA=A6=AD=EA=A7=80?= Date: Sat, 5 Oct 2019 14:41:50 +0800 Subject: updated signal is emitted only when the catalog *is* updated --- catalog.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/catalog.cxx b/catalog.cxx index 709d20d..03a90a1 100644 --- a/catalog.cxx +++ b/catalog.cxx @@ -55,8 +55,8 @@ namespace ICClient { for (size_t i = 0; i < catalog->length; i++) addProduct(Product{catalog->products[i]}); icclient_catalog_free(catalog); + emit updated(); } - emit updated(); } } -- cgit v1.2.3