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/qgis@15700 c8812cc2-4d05-0410-92ff-de0c093fc19c
  • Loading branch information
mhugent committed Apr 14, 2011
1 parent 9fb3dd8 commit f590d587f8ece8878e6a0e197a4c93a67137f6ea
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 f590d58

Please sign in to comment.