Skip to content
Permalink
Browse files

Clear non-indexable layers when they are removed

  • Loading branch information
wonder-sk committed Jan 27, 2016
1 parent 193d377 commit 19b18bc6ff28848edb90a913573baaeadf30aeea
Showing with 3 additions and 0 deletions.
  1. +3 −0 src/core/qgssnappingutils.cpp
@@ -514,6 +514,9 @@ void QgsSnappingUtils::onLayersWillBeRemoved( const QStringList& layerIds )
// remove locators for layers that are going to be deleted
Q_FOREACH ( const QString& layerId, layerIds )
{
if ( mHybridNonindexableLayers.contains( layerId ) )
mHybridNonindexableLayers.remove( layerId );

for ( LocatorsMap::iterator it = mLocators.begin(); it != mLocators.end(); )
{
if ( it.key()->id() == layerId )

0 comments on commit 19b18bc

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