mirror of
https://github.com/Cockatrice/Cockatrice.git
synced 2026-04-27 07:48:01 -07:00
Merge pull request #920 from poixen/card_search_punctuation
Ignore punctuation in card search
This commit is contained in:
commit
86f6e911bd
1 changed files with 3 additions and 2 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue