Fixed deck tokens showing in token dlg
Tokens from decks will now show in the token dlg window
This commit is contained in:
parent
7ea755ab5a
commit
884579529d
1 changed files with 4 additions and 0 deletions
|
@ -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);
|
||||
|
||||
|
|
Loading…
Reference in a new issue