From 864cab8c8afe9afc2a329d8849d2eee336a6898f Mon Sep 17 00:00:00 2001 From: Al Date: Sat, 12 Jan 2019 19:58:56 +0100 Subject: Fixed "check all for updates" not updating for the newly added mods. --- src/modlistsortproxy.cpp | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) (limited to 'src/modlistsortproxy.cpp') diff --git a/src/modlistsortproxy.cpp b/src/modlistsortproxy.cpp index 1a00d764..bff26e8d 100644 --- a/src/modlistsortproxy.cpp +++ b/src/modlistsortproxy.cpp @@ -58,11 +58,18 @@ void ModListSortProxy::updateFilterActive() void ModListSortProxy::setCategoryFilter(const std::vector &categories) { + m_CategoryFilter = categories; + updateFilterActive(); + invalidate(); + + //For better performance we could refresh only if the filter is different or + //categories contains CATEGORY_SPECIAL_UPDATEAVAILABLE + /* if (categories != m_CategoryFilter) { m_CategoryFilter = categories; updateFilterActive(); invalidate(); - } + }*/ } void ModListSortProxy::setContentFilter(const std::vector &content) -- cgit v1.3.1