mirror of
https://github.com/Cockatrice/Cockatrice.git
synced 2026-06-12 00:54:53 -07:00
search function couldn't find colorless cards: fixed
This commit is contained in:
parent
f9b0b4b170
commit
0b98d90337
2 changed files with 6 additions and 3 deletions
|
|
@ -87,7 +87,7 @@ bool CardDatabaseDisplayModel::filterAcceptsRow(int sourceRow, const QModelIndex
|
|||
return false;
|
||||
|
||||
if (!cardColors.isEmpty())
|
||||
if (QSet<QString>::fromList(info->getColors()).intersect(cardColors).isEmpty())
|
||||
if (QSet<QString>::fromList(info->getColors()).intersect(cardColors).isEmpty() && !(info->getColors().isEmpty() && cardColors.contains("X")))
|
||||
return false;
|
||||
|
||||
if (!cardTypes.isEmpty())
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue