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…
Reference in a new issue