mirror of
https://github.com/Cockatrice/Cockatrice.git
synced 2026-06-11 08:34:52 -07:00
Hide non-existent card values in infowidget and cardframe (#3239)
This commit is contained in:
parent
9acf606e93
commit
3b3f5a639c
3 changed files with 67 additions and 12 deletions
|
|
@ -52,6 +52,8 @@ void CardInfoWidget::setCard(CardInfoPtr card)
|
|||
void CardInfoWidget::setCard(const QString &cardName)
|
||||
{
|
||||
setCard(db->getCardBySimpleName(cardName));
|
||||
if (!info)
|
||||
text->setInvalidCardName(cardName);
|
||||
}
|
||||
|
||||
void CardInfoWidget::setCard(AbstractCardItem *card)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue