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
|
bool TokenDisplayModel::filterAcceptsRow(int sourceRow, const QModelIndex & /*sourceParent*/) const
|
||||||
{
|
{
|
||||||
CardInfo const *info = static_cast<CardDatabaseModel *>(sourceModel())->getCard(sourceRow);
|
CardInfo const *info = static_cast<CardDatabaseModel *>(sourceModel())->getCard(sourceRow);
|
||||||
|
return info->getIsToken() && rowMatchesCardName(info);
|
||||||
return info->getIsToken();
|
|
||||||
}
|
}
|
||||||
|
|
||||||
int TokenDisplayModel::rowCount(const QModelIndex &parent) const
|
int TokenDisplayModel::rowCount(const QModelIndex &parent) const
|
||||||
|
|
Loading…
Reference in a new issue