Skip to content
Permalink
Browse files

avoid messages warning: this also avoids the warning like:

```
QObject::connect: Cannot connect (null)::repaintRequested() to LayerPreview::refresh()
QObject::connect: Cannot connect (null)::layerCrsChanged() to LayerPreview::layerCrsChange()
```

from dbmanager when changing layer preview.
  • Loading branch information
slarosa committed Jan 23, 2016
1 parent bfad753 commit 09ce8004fd2ca9e911b84dd4de59bafb47037b44
Showing with 2 additions and 0 deletions.
  1. +2 −0 src/gui/qgsmapcanvas.cpp
@@ -437,6 +437,8 @@ void QgsMapCanvas::setLayerSet( QList<QgsMapCanvasLayer> &layers )
// Add check if vector layer when connecting to selectionChanged slot
// Ticket #811 - racicot
QgsMapLayer *currentLayer = layer( i );
if ( !currentLayer )
continue;
connect( currentLayer, SIGNAL( repaintRequested() ), this, SLOT( refresh() ) );
connect( currentLayer, SIGNAL( layerCrsChanged() ), this, SLOT( layerCrsChange() ) );
QgsVectorLayer *isVectLyr = qobject_cast<QgsVectorLayer *>( currentLayer );

0 comments on commit 09ce800

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