Include card name criteria when filtering token database model.

This commit is contained in:
Mark McDonald
2016-05-11 21:42:52 -04:00
parent d12c86d89c
commit 7bc14b594d
+1 -2
View File
@@ -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