Fix segfault when filtering card view that have blank cards (#6017)

This commit is contained in:
RickyRister 2025-07-04 07:18:07 -07:00 committed by GitHub
parent ed82106359
commit a28a1aa601
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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);
}