Skip to content

Commit 408d746

Browse files
committed
Make sure to update snapping utils when layers change
Otherwise when using all layers the change would not become visible (unless other change happens, e.g. change of map extent)
1 parent 23c776e commit 408d746

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

src/gui/qgsmapcanvassnappingutils.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ QgsMapCanvasSnappingUtils::QgsMapCanvasSnappingUtils( QgsMapCanvas* canvas, QObj
99
{
1010
connect( canvas, SIGNAL( extentsChanged() ), this, SLOT( canvasMapSettingsChanged() ) );
1111
connect( canvas, SIGNAL( destinationCrsChanged() ), this, SLOT( canvasMapSettingsChanged() ) );
12+
connect( canvas, SIGNAL( layersChanged() ), this, SLOT( canvasMapSettingsChanged() ) );
1213
connect( canvas, SIGNAL( currentLayerChanged( QgsMapLayer* ) ), this, SLOT( canvasCurrentLayerChanged() ) );
1314
canvasMapSettingsChanged();
1415
canvasCurrentLayerChanged();

0 commit comments

Comments
 (0)