Hide non-existent card values in infowidget and cardframe (#3239)

This commit is contained in:
Bers 2018-05-15 07:53:53 +02:00 committed by Zach H
parent 9acf606e93
commit 3b3f5a639c
3 changed files with 67 additions and 12 deletions

View file

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