From 95104df58960bd8836735d39d2e7ebe42384621a Mon Sep 17 00:00:00 2001 From: Matt Lowe Date: Fri, 1 May 2015 22:26:44 +0200 Subject: [PATCH] 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. --- cockatrice/src/carddatabasemodel.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cockatrice/src/carddatabasemodel.cpp b/cockatrice/src/carddatabasemodel.cpp index 70502cdd..364fb8f1 100644 --- a/cockatrice/src/carddatabasemodel.cpp +++ b/cockatrice/src/carddatabasemodel.cpp @@ -171,7 +171,7 @@ bool CardDatabaseDisplayModel::filterAcceptsRow(int sourceRow, const QModelIndex if (((isToken == ShowTrue) && !info->getIsToken()) || ((isToken == ShowFalse) && info->getIsToken())) return false; - if (!cardName.isEmpty() && !info->getSimpleName().contains(cardName, Qt::CaseInsensitive)) + if (!cardName.isEmpty() && !info->getName().contains(cardName, Qt::CaseInsensitive)) return false; if (!cardNameSet.isEmpty() && !cardNameSet.contains(info->getName()))