Skip to content

Commit

Permalink
No need to manually disconnect from an object which is about to be de…
Browse files Browse the repository at this point in the history
…leted
  • Loading branch information
nyalldawson committed Jan 16, 2021
1 parent cfdcae9 commit 20aea8b
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions src/app/3d/qgs3dmapcanvas.cpp
Expand Up @@ -97,9 +97,6 @@ void Qgs3DMapCanvas::setMap( Qgs3DMapSettings *map )

if ( mScene )
{
disconnect( mScene, &Qgs3DMapScene::fpsCountChanged, this, &Qgs3DMapCanvas::fpsCountChanged );
disconnect( mScene, &Qgs3DMapScene::fpsCounterEnabledChanged, this, &Qgs3DMapCanvas::fpsCounterEnabledChanged );
disconnect( mScene, &Qgs3DMapScene::navigationModeHotKeyPressed, this, &Qgs3DMapCanvas::onNavigationModeHotKeyPressed );
mScene->deleteLater();
}
mScene = newScene;
Expand Down

0 comments on commit 20aea8b

Please sign in to comment.