mirror of
https://github.com/Cockatrice/Cockatrice.git
synced 2026-06-12 00:54:53 -07:00
removed unnecessary repaint when destroying token
This commit is contained in:
parent
51f9f34e8b
commit
a029994437
5 changed files with 15 additions and 11 deletions
|
|
@ -129,7 +129,7 @@ CardItem *CardZone::getCard(int cardId, const QString &cardName)
|
|||
return c;
|
||||
}
|
||||
|
||||
CardItem *CardZone::takeCard(int position, int cardId, const QString &cardName, bool /*canResize*/)
|
||||
CardItem *CardZone::takeCard(int position, int cardId, bool /*canResize*/)
|
||||
{
|
||||
if (position == -1) {
|
||||
// position == -1 means either that the zone is indexed by card id
|
||||
|
|
@ -151,7 +151,6 @@ CardItem *CardZone::takeCard(int position, int cardId, const QString &cardName,
|
|||
view->removeCard(position);
|
||||
|
||||
c->setId(cardId);
|
||||
c->setName(cardName);
|
||||
|
||||
reorganizeCards();
|
||||
emit cardCountChanged();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue