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
86f6e911
Commit
86f6e911
authored
Apr 08, 2015
by
poixen
Browse files
Merge pull request #920 from poixen/card_search_punctuation
Ignore punctuation in card search
parents
6f69485f
b27854e4
Changes
1
Hide whitespace changes
Inline
Side-by-side
cockatrice/src/carddatabasemodel.cpp
View file @
86f6e911
...
...
@@ -152,8 +152,9 @@ bool CardDatabaseDisplayModel::filterAcceptsRow(int sourceRow, const QModelIndex
return
false
;
if
(
!
cardName
.
isEmpty
())
if
(
!
info
->
getName
().
contains
(
cardName
,
Qt
::
CaseInsensitive
))
return
false
;
if
(
!
info
->
getName
().
contains
(
cardName
,
Qt
::
CaseInsensitive
))
if
(
!
CardInfo
::
simplifyName
(
info
->
getName
()).
contains
(
cardName
,
Qt
::
CaseInsensitive
))
return
false
;
if
(
filterTree
!=
NULL
)
return
filterTree
->
acceptsCard
(
info
);
...
...
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