Skip to content
Permalink
Browse files

tried to fix problem with snapping options on adding a new layer to t…

…he project
  • Loading branch information
cmoe committed Oct 6, 2012
1 parent 6849406 commit 5d84cd3f87a6450c2164576d279fe82b33389416
Showing with 14 additions and 0 deletions.
  1. +14 −0 src/app/qgssnappingdialog.cpp
@@ -287,6 +287,20 @@ void QgsSnappingDialog::addLayer( QgsMapLayer * theMapLayer )
int idx = layerIdList.indexOf( currentVectorLayer->id() );
if ( idx < 0 )
{
if ( myDockFlag )
{
connect( cbxEnable, SIGNAL( stateChanged( int ) ), this, SLOT( apply() ) );
connect( cbxSnapTo, SIGNAL( currentIndexChanged( int ) ), this, SLOT( apply() ) );
connect( leTolerance, SIGNAL( textEdited( const QString ) ), this, SLOT( apply() ) );
connect( cbxUnits, SIGNAL( currentIndexChanged( int ) ), this, SLOT( apply() ) );

if ( cbxAvoidIntersection )
{
connect( cbxAvoidIntersection, SIGNAL( stateChanged( int ) ), this, SLOT( apply() ) );
}
setTopologicalEditingState();
setIntersectionSnappingState();
}
// no settings for this layer yet
return;
}

0 comments on commit 5d84cd3

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