summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--libappstream-glib/as-store.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/libappstream-glib/as-store.c b/libappstream-glib/as-store.c
index b597083..b5a0caa 100644
--- a/libappstream-glib/as-store.c
+++ b/libappstream-glib/as-store.c
@@ -384,6 +384,8 @@ as_store_from_root (AsStore *store,
NULL);
}
for (n = apps->children; n != NULL; n = n->next) {
+ if (as_node_get_tag (n) != AS_TAG_APPLICATION)
+ continue;
app = as_app_new ();
if (icon_path != NULL)
as_app_set_icon_path (app, icon_path, -1);