From 5a6a6c864f7bedfd2bdf051f2198e120e614cea5 Mon Sep 17 00:00:00 2001 From: Michael Zanetti Date: Tue, 5 Feb 2019 23:01:41 +0100 Subject: [PATCH] Emit a countChanged when setting the model to make sure the view is aware of the new count --- libnymea-app-core/models/tagsproxymodel.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/libnymea-app-core/models/tagsproxymodel.cpp b/libnymea-app-core/models/tagsproxymodel.cpp index 34d18ce1..c21df726 100644 --- a/libnymea-app-core/models/tagsproxymodel.cpp +++ b/libnymea-app-core/models/tagsproxymodel.cpp @@ -21,6 +21,7 @@ void TagsProxyModel::setTags(Tags *tags) setSortRole(Tags::RoleValue); sort(0); emit tagsChanged(); + emit countChanged(); } }