From 1189b8cc339ad8f55814748ff7eea5bda08b45fd Mon Sep 17 00:00:00 2001 From: Al12rs Date: Sun, 4 Nov 2018 16:19:54 +0100 Subject: Made the "checked" filter show separators. --- src/modlistsortproxy.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/modlistsortproxy.cpp') diff --git a/src/modlistsortproxy.cpp b/src/modlistsortproxy.cpp index 59784642..9adaa511 100644 --- a/src/modlistsortproxy.cpp +++ b/src/modlistsortproxy.cpp @@ -253,7 +253,7 @@ bool ModListSortProxy::filterMatchesModAnd(ModInfo::Ptr info, bool enabled) cons for (auto iter = m_CategoryFilter.begin(); iter != m_CategoryFilter.end(); ++iter) { switch (*iter) { case CategoryFactory::CATEGORY_SPECIAL_CHECKED: { - if (!enabled && !info->alwaysEnabled()) return false; + if (!enabled && !info->alwaysEnabled() && !info->hasFlag(ModInfo::FLAG_SEPARATOR)) return false; } break; case CategoryFactory::CATEGORY_SPECIAL_UNCHECKED: { if (enabled || info->alwaysEnabled()) return false; -- cgit v1.3.1