Skip to content
Permalink
Browse files

Fix for bug #3692 (QGIS segfaults after removing table join)

git-svn-id: http://svn.osgeo.org/qgis/trunk@15700 c8812cc2-4d05-0410-92ff-de0c093fc19c
  • Loading branch information
mhugent
mhugent committed Apr 14, 2011
1 parent 72ee7e6 commit f42443c942926c6934ad983eada807953aaf0972
Showing with 6 additions and 1 deletion.
  1. +6 −1 src/core/qgsvectorlayerjoinbuffer.cpp
@@ -47,7 +47,12 @@ void QgsVectorLayerJoinBuffer::removeJoin( const QString& joinLayerId )
if ( mVectorJoins.at( i ).joinLayerId == joinLayerId )
{
mVectorJoins.removeAt( i );
return;
//remove corresponding fetch join info
QgsVectorLayer* joinLayer = dynamic_cast<QgsVectorLayer*>( QgsMapLayerRegistry::instance()->mapLayer( joinLayerId ) );
if ( joinLayer )
{
mFetchJoinInfos.remove( joinLayer );
}
}
}
}

0 comments on commit f42443c

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