diff --git a/cockatrice/src/game_graphics/game_scene.cpp b/cockatrice/src/game_graphics/game_scene.cpp index cd2b12828..87af4c73c 100644 --- a/cockatrice/src/game_graphics/game_scene.cpp +++ b/cockatrice/src/game_graphics/game_scene.cpp @@ -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;