mirror of
https://github.com/Cockatrice/Cockatrice.git
synced 2026-06-11 00:24:47 -07:00
Delete CardDragItem when referenced CardItem is destroyed (#5911)
This commit is contained in:
parent
4a54412d47
commit
29d93fb9c1
1 changed files with 2 additions and 0 deletions
|
|
@ -39,6 +39,8 @@ AbstractCardDragItem::AbstractCardDragItem(AbstractCardItem *_item,
|
|||
prepareGeometryChange();
|
||||
update();
|
||||
});
|
||||
|
||||
connect(item, &QObject::destroyed, this, &AbstractCardDragItem::deleteLater);
|
||||
}
|
||||
|
||||
AbstractCardDragItem::~AbstractCardDragItem()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue