Include card name criteria when filtering token database model.
This commit is contained in:
parent
d12c86d89c
commit
7bc14b594d
1 changed files with 1 additions and 2 deletions
|
@ -237,8 +237,7 @@ TokenDisplayModel::TokenDisplayModel(QObject *parent)
|
|||
bool TokenDisplayModel::filterAcceptsRow(int sourceRow, const QModelIndex & /*sourceParent*/) const
|
||||
{
|
||||
CardInfo const *info = static_cast<CardDatabaseModel *>(sourceModel())->getCard(sourceRow);
|
||||
|
||||
return info->getIsToken();
|
||||
return info->getIsToken() && rowMatchesCardName(info);
|
||||
}
|
||||
|
||||
int TokenDisplayModel::rowCount(const QModelIndex &parent) const
|
||||
|
|
Loading…
Reference in a new issue