mirror of
https://github.com/Cockatrice/Cockatrice.git
synced 2026-07-21 18:02:14 -07:00
Address PR comments (AbstractCardItem).
This commit is contained in:
parent
4f2f205018
commit
b02074a37b
1 changed files with 4 additions and 2 deletions
|
|
@ -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();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue