Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
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 5d84cd3
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions src/app/qgssnappingdialog.cpp
Expand Up @@ -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;
}
Expand Down

0 comments on commit 5d84cd3

Please sign in to comment.