Skip to content
Permalink
Browse files

Merge pull request #276 from cmoe/bug_snapping_options

tried to fix problem with snapping options on adding a new layer to the ...
  • Loading branch information
mhugent committed Oct 6, 2012
2 parents 9f0d858 + 5d84cd3 commit 9da9d6bef8b36c2189f1af897598786238072445
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 9da9d6b

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