mirror of
https://github.com/Cockatrice/Cockatrice.git
synced 2026-04-27 07:48:01 -07:00
Fix segfault when filtering card view that have blank cards (#6017)
This commit is contained in:
parent
ed82106359
commit
a28a1aa601
1 changed files with 4 additions and 0 deletions
|
|
@ -31,6 +31,10 @@ public:
|
|||
explicit FilterString(const QString &exp);
|
||||
bool check(const CardData &card) const
|
||||
{
|
||||
if (card.isNull()) {
|
||||
static CardInfoPtr blankCard = CardInfo::newInstance("");
|
||||
return result(blankCard);
|
||||
}
|
||||
return result(card);
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue