diff options
| author | Al12rs <gabriel.cortesi@outlook.com> | 2018-11-04 16:19:54 +0100 |
|---|---|---|
| committer | Al12rs <gabriel.cortesi@outlook.com> | 2018-11-04 16:19:54 +0100 |
| commit | 1189b8cc339ad8f55814748ff7eea5bda08b45fd (patch) | |
| tree | 5daafd46baee7b77f740907d2966193868b9aa25 /src/modlistsortproxy.cpp | |
| parent | 17f1cf0aabf29453f7c00644f7aee93f83f2bca8 (diff) | |
Made the "checked" filter show separators.
Diffstat (limited to 'src/modlistsortproxy.cpp')
| -rw-r--r-- | src/modlistsortproxy.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
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;
|
