add a nulcheck in the card item animation timer (#6740)

This commit is contained in:
ebbit1q
2026-03-27 18:08:51 +01:00
committed by GitHub
parent 74cce5ccb2
commit abf6e72ad1

View File

@@ -460,6 +460,9 @@ void CardItem::mouseDoubleClickEvent(QGraphicsSceneMouseEvent *event)
bool CardItem::animationEvent()
{
if (owner == nullptr) {
return false;
}
int rotation = ROTATION_DEGREES_PER_FRAME;
bool animationIncomplete = true;
if (!tapped)