Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
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 committed Apr 14, 2011
1 parent 72ee7e6 commit f42443c
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion src/core/qgsvectorlayerjoinbuffer.cpp
Expand Up @@ -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 );
}
}
}
}
Expand Down

0 comments on commit f42443c

Please sign in to comment.