mirror of
https://github.com/Cockatrice/Cockatrice.git
synced 2026-06-21 14:23:54 -07:00
Fix a crash (#3011)
This commit is contained in:
parent
7a150c558d
commit
dcc632e0d4
4 changed files with 46 additions and 28 deletions
|
|
@ -59,7 +59,7 @@ CardInfoText::CardInfoText(QWidget *parent)
|
|||
|
||||
void CardInfoText::setCard(CardInfo *card)
|
||||
{
|
||||
if(card)
|
||||
if (card)
|
||||
{
|
||||
nameLabel2->setText(card->getName());
|
||||
manacostLabel2->setText(card->getManaCost());
|
||||
|
|
@ -68,7 +68,9 @@ void CardInfoText::setCard(CardInfo *card)
|
|||
powtoughLabel2->setText(card->getPowTough());
|
||||
loyaltyLabel2->setText(card->getLoyalty() > 0 ? QString::number(card->getLoyalty()) : QString());
|
||||
textLabel->setText(card->getText());
|
||||
} else {
|
||||
}
|
||||
else
|
||||
{
|
||||
nameLabel2->setText("");
|
||||
manacostLabel2->setText("");
|
||||
colorLabel2->setText("");
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue