[GameScene] Don't just sever self connections, sever them all.

Took 21 minutes
This commit is contained in:
Lukas Brübach 2026-08-25 19:50:32 +02:00
parent dba7cc73a4
commit b38afe9769

View file

@ -48,7 +48,7 @@ GameScene::~GameScene()
// members below are destroyed: the base QGraphicsScene destructor destroys the
// remaining items, and their destroyed() signals must not reach slots that
// reference members that no longer exist.
disconnect(this);
QObject::disconnect(nullptr, nullptr, this, nullptr);
delete animationTimer;
animationTimer = nullptr;