mirror of
https://github.com/Cockatrice/Cockatrice.git
synced 2026-06-13 01:24:46 -07:00
Dont create dummy card infos for unkown cards (#3708)
This commit is contained in:
parent
63cf0ae764
commit
95d6efcdbf
1 changed files with 1 additions and 1 deletions
|
|
@ -46,7 +46,7 @@ void AbstractCardItem::cardInfoUpdated()
|
||||||
{
|
{
|
||||||
info = db->getCard(name);
|
info = db->getCard(name);
|
||||||
|
|
||||||
if (!info) {
|
if (!info && !name.isEmpty()) {
|
||||||
QVariantHash properties = QVariantHash();
|
QVariantHash properties = QVariantHash();
|
||||||
|
|
||||||
info = CardInfo::newInstance(name, "", true, QVariantHash(), QList<CardRelation *>(), QList<CardRelation *>(),
|
info = CardInfo::newInstance(name, "", true, QVariantHash(), QList<CardRelation *>(), QList<CardRelation *>(),
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue