mirror of
https://github.com/Cockatrice/Cockatrice.git
synced 2026-06-26 16:43:55 -07:00
Fix a crash (#3011)
This commit is contained in:
parent
7a150c558d
commit
dcc632e0d4
4 changed files with 46 additions and 28 deletions
|
|
@ -20,10 +20,16 @@ CardInfoPicture::CardInfoPicture(QWidget *parent)
|
|||
void CardInfoPicture::setCard(CardInfo *card)
|
||||
{
|
||||
if (info)
|
||||
{
|
||||
disconnect(info, nullptr, this, nullptr);
|
||||
}
|
||||
|
||||
info = card;
|
||||
if(info)
|
||||
|
||||
if (info)
|
||||
{
|
||||
connect(info, SIGNAL(pixmapUpdated()), this, SLOT(updatePixmap()));
|
||||
}
|
||||
|
||||
updatePixmap();
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue