Address PR comments (AbstractCardItem).

This commit is contained in:
Lukas Brübach 2024-11-16 19:54:16 +01:00
parent 4f2f205018
commit b02074a37b

View file

@ -190,12 +190,14 @@ void AbstractCardItem::setName(const QString &_name)
void AbstractCardItem::setUUID(const QString &_uuid)
{
if (uuid == _uuid)
if (uuid == _uuid) {
return;
}
emit deleteCardInfoPopup(name);
if (info)
if (info) {
disconnect(info.data(), nullptr, this, nullptr);
}
uuid = _uuid;
cardInfoUpdated();