Skip to content
Permalink
Browse files

Fix reading of snapping dialog in dock state

  • Loading branch information
mhugent committed Oct 5, 2012
1 parent 705719c commit 51d97ff6c4ff420c310fca75ae742158b7d764b4
Showing with 13 additions and 13 deletions.
  1. +13 −13 src/app/qgssnappingdialog.cpp
@@ -276,19 +276,6 @@ void QgsSnappingDialog::addLayer( QgsMapLayer * theMapLayer )
mLayerTreeWidget->setItemWidget( item, 5, cbxAvoidIntersection );
}

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() ) );
}
}

int idx = layerIdList.indexOf( currentVectorLayer->id() );
if ( idx < 0 )
{
@@ -318,6 +305,19 @@ void QgsSnappingDialog::addLayer( QgsMapLayer * theMapLayer )
{
cbxAvoidIntersection->setChecked( avoidIntersectionsList.contains( currentVectorLayer->id() ) );
}

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() ) );
}
}
}

void QgsSnappingDialog::layersWillBeRemoved( QStringList thelayers )

0 comments on commit 51d97ff

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