Skip to content
Permalink
Browse files

canvas: don't try to connect to null layers

  • Loading branch information
jef-n committed Mar 2, 2017
1 parent bceb8ff commit d315fdfabc4ba0b55b41d1d1f8a7fe591b788d2a
Showing with 2 additions and 0 deletions.
  1. +2 −0 src/gui/qgsmapcanvas.cpp
@@ -310,6 +310,8 @@ void QgsMapCanvas::setLayers( const QList<QgsMapLayer*>& layers )

Q_FOREACH ( QgsMapLayer* layer, layers )
{
if ( !layer )
continue;
connect( layer, &QgsMapLayer::repaintRequested, this, &QgsMapCanvas::layerRepaintRequested );
connect( layer, &QgsMapLayer::crsChanged, this, &QgsMapCanvas::layerCrsChange );
connect( layer, &QgsMapLayer::autoRefreshIntervalChanged, this, &QgsMapCanvas::updateAutoRefreshTimer );

0 comments on commit d315fdf

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