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
6807fed0
Commit
6807fed0
authored
Apr 17, 2015
by
ctrlaltca
Browse files
Merge pull request #976 from ctrlaltca/fix_643
Fix #643 (problem in deck editor's OR filter when no term is enabled)
parents
b99a0a68
c27735b0
Changes
1
Hide whitespace changes
Inline
Side-by-side
cockatrice/src/filtertree.cpp
View file @
6807fed0
...
...
@@ -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
noChildEnabledChild
=
true
;
for
(
i
=
childNodes
.
constBegin
();
i
!=
childNodes
.
constEnd
();
i
++
)
{
if
(
!
(
*
i
)
->
isEnabled
())
continue
;
if
(
noChildEnabledChild
)
noChildEnabledChild
=
false
;
if
((
*
i
)
->
acceptCardAttr
(
info
,
attr
))
return
true
;
}
return
false
;
return
noChildEnabledChild
;
}
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