Skip to content
Permalink
Browse files

grass provider: don't close invalid layers (fixes #7180)

  • Loading branch information
jef-n committed Jun 30, 2013
1 parent f3d79a8 commit a40364866ea41cd6b4cfed5064d2004eee2fa921
Showing with 3 additions and 0 deletions.
  1. +3 −0 src/providers/grass/qgsgrassprovider.cpp
@@ -677,6 +677,9 @@ void QgsGrassProvider::loadAttributes( GLAYER &layer )

void QgsGrassProvider::closeLayer( int layerId )
{
if ( layerId < 0 )
return;

QgsDebugMsg( QString( "Close layer %1 nUsers = %2" ).arg( layerId ).arg( mLayers[layerId].nUsers ) );

// TODO: not tested because delete is never used for providers

0 comments on commit a403648

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