mirror of
https://github.com/Cockatrice/Cockatrice.git
synced 2026-06-17 12:37:46 -07:00
Consider removed cards.
Took 14 minutes
This commit is contained in:
parent
0cfffdf9df
commit
815baa1ffd
8 changed files with 39 additions and 7 deletions
|
|
@ -15,6 +15,17 @@ void CardState::prepareDelete()
|
|||
attachedCards.first()->setZone(nullptr); // so that it won't try to call reorganizeCards()
|
||||
attachedCards.first()->setAttachedTo(nullptr);
|
||||
}
|
||||
|
||||
if (getAttachedTo() != nullptr) {
|
||||
getAttachedTo()->removeAttachedCard(this);
|
||||
setAttachedTo(nullptr);
|
||||
}
|
||||
}
|
||||
|
||||
void CardState::deleteLater()
|
||||
{
|
||||
prepareDelete();
|
||||
QObject::deleteLater();
|
||||
}
|
||||
|
||||
void CardState::processCardInfo(const ServerInfo_Card &_info)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue