Fixed deck tokens showing in token dlg

Tokens from decks will now show in the token dlg window
This commit is contained in:
Matt Lowe 2015-04-10 00:46:11 +02:00
parent 7ea755ab5a
commit 884579529d

View file

@ -156,6 +156,10 @@ bool CardDatabaseDisplayModel::filterAcceptsRow(int sourceRow, const QModelIndex
if (!CardInfo::simplifyName(info->getName()).contains(cardName, Qt::CaseInsensitive))
return false;
if (!cardNameSet.isEmpty())
if (!cardNameSet.contains(info->getName()))
return false;
if (filterTree != NULL)
return filterTree->acceptsCard(info);