Commit 966add0e authored by Jean-Baptiste Mardelle's avatar Jean-Baptiste Mardelle
Browse files

Filter effects in current category only.

Related to #541
parent 62576661
...@@ -68,7 +68,10 @@ bool EffectFilter::filterType(const std::shared_ptr<TreeItem> &item) const ...@@ -68,7 +68,10 @@ bool EffectFilter::filterType(const std::shared_ptr<TreeItem> &item) const
bool EffectFilter::applyAll(std::shared_ptr<TreeItem> item) const bool EffectFilter::applyAll(std::shared_ptr<TreeItem> item) const
{ {
if (!m_name_value.isEmpty()) { if (!m_name_value.isEmpty()) {
return filterName(item); if (m_type_value == EffectType::Preferred) {
return filterName(item);
}
return filterType(item) && filterName(item);
} else { } else {
return filterType(item); return filterType(item);
} }
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment