Skip to content
Permalink
Browse files

Disconnect from previous temporal controller when setting canvas cont…

…roller
  • Loading branch information
nyalldawson committed Mar 12, 2020
1 parent 0b8d8e9 commit 3445cafaba601fa8dd77fb694441a187b5eab84f
Showing with 3 additions and 1 deletion.
  1. +3 −1 src/gui/qgsmapcanvas.cpp
@@ -419,8 +419,10 @@ void QgsMapCanvas::setDestinationCrs( const QgsCoordinateReferenceSystem &crs )

void QgsMapCanvas::setTemporalController( QgsTemporalController *controller )
{
mController = controller;
if ( mController )
disconnect( mController, &QgsTemporalController::updateTemporalRange, this, &QgsMapCanvas::setTemporalRange );

mController = controller;
connect( mController, &QgsTemporalController::updateTemporalRange, this, &QgsMapCanvas::setTemporalRange );
}

0 comments on commit 3445caf

Please sign in to comment.
You can’t perform that action at this time.