Reverted back to full punctuation

Reverted back. Right now it feels strange to only have simple search.
Really you would want both simple search AND accurate search on, though
this requires twice the checks for each result.
This commit is contained in:
Matt Lowe 2015-05-01 22:26:44 +02:00
parent ca2ff99391
commit 95104df589

View file

@ -171,7 +171,7 @@ bool CardDatabaseDisplayModel::filterAcceptsRow(int sourceRow, const QModelIndex
if (((isToken == ShowTrue) && !info->getIsToken()) || ((isToken == ShowFalse) && info->getIsToken())) if (((isToken == ShowTrue) && !info->getIsToken()) || ((isToken == ShowFalse) && info->getIsToken()))
return false; return false;
if (!cardName.isEmpty() && !info->getSimpleName().contains(cardName, Qt::CaseInsensitive)) if (!cardName.isEmpty() && !info->getName().contains(cardName, Qt::CaseInsensitive))
return false; return false;
if (!cardNameSet.isEmpty() && !cardNameSet.contains(info->getName())) if (!cardNameSet.isEmpty() && !cardNameSet.contains(info->getName()))