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
|
@ -153,7 +153,8 @@ bool CardDatabaseDisplayModel::filterAcceptsRow(int sourceRow, const QModelIndex
|
||||||
|
|
||||||
if (!cardName.isEmpty())
|
if (!cardName.isEmpty())
|
||||||
if (!info->getName().contains(cardName, Qt::CaseInsensitive))
|
if (!info->getName().contains(cardName, Qt::CaseInsensitive))
|
||||||
return false;
|
if (!CardInfo::simplifyName(info->getName()).contains(cardName, Qt::CaseInsensitive))
|
||||||
|
return false;
|
||||||
|
|
||||||
if (filterTree != NULL)
|
if (filterTree != NULL)
|
||||||
return filterTree->acceptsCard(info);
|
return filterTree->acceptsCard(info);
|
||||||
|
|
Loading…
Reference in a new issue