Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Donald Haase
Cockatrice
Commits
9296e600
Commit
9296e600
authored
Apr 16, 2015
by
Fabio Bas
Browse files
Fix #643
parent
2f35e86b
Changes
1
Hide whitespace changes
Inline
Side-by-side
cockatrice/src/filtertree.cpp
View file @
9296e600
...
...
@@ -131,15 +131,18 @@ bool FilterItemList::testTypeAndNot(const CardInfo *info, CardFilter::Attr attr)
bool
FilterItemList
::
testTypeOr
(
const
CardInfo
*
info
,
CardFilter
::
Attr
attr
)
const
{
QList
<
FilterItem
*>::
const_iterator
i
;
bool
enabledChilds
=
false
;
for
(
i
=
childNodes
.
constBegin
();
i
!=
childNodes
.
constEnd
();
i
++
)
{
if
(
!
(
*
i
)
->
isEnabled
())
continue
;
if
(
!
enabledChilds
)
enabledChilds
=
true
;
if
((
*
i
)
->
acceptCardAttr
(
info
,
attr
))
return
true
;
}
return
fals
e
;
return
enabledChilds
?
false
:
tru
e
;
}
bool
FilterItemList
::
testTypeOrNot
(
const
CardInfo
*
info
,
CardFilter
::
Attr
attr
)
const
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment