Commit 778ad8de authored by Matt Lowe's avatar Matt Lowe
Browse files

Simple name searching on by default

Previously would try to match the card name, if nothing is found, then
we would try again with the simple name.

I have now made it only the simple name version. We do not need to
perform the first check. Should help a little with performance.
parent f79d0666
...@@ -152,9 +152,8 @@ bool CardDatabaseDisplayModel::filterAcceptsRow(int sourceRow, const QModelIndex ...@@ -152,9 +152,8 @@ bool CardDatabaseDisplayModel::filterAcceptsRow(int sourceRow, const QModelIndex
return false; return false;
if (!cardName.isEmpty()) if (!cardName.isEmpty())
if (!info->getName().contains(cardName, Qt::CaseInsensitive)) if (!CardInfo::simplifyName(info->getName()).contains(cardName, Qt::CaseInsensitive))
if (!CardInfo::simplifyName(info->getName()).contains(cardName, Qt::CaseInsensitive)) return false;
return false;
if (!cardNameSet.isEmpty()) if (!cardNameSet.isEmpty())
if (!cardNameSet.contains(info->getName())) if (!cardNameSet.contains(info->getName()))
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment