Skip to content

Commit

Permalink
disabled Vect_close if map cannot be opened on level2 on win to test …
Browse files Browse the repository at this point in the history
…ticket 2003

git-svn-id: http://svn.osgeo.org/qgis/trunk@13159 c8812cc2-4d05-0410-92ff-de0c093fc19c
  • Loading branch information
rblazek committed Mar 25, 2010
1 parent be05a75 commit 67d41d0
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/plugins/grass/qgsgrassselect.cpp
Expand Up @@ -413,7 +413,12 @@ QStringList QgsGrassSelect::vectorLayers( QString gisdbase,
{
QgsDebugMsg( "Cannot open vector on level 2" );
QMessageBox::warning( 0, tr( "Warning" ), tr( "Cannot open vector %1 in mapset %2 on level 2 (topology not available, try to rebuild topology using v.build module)." ).arg( mapName ).arg( mapset ) );
// Vect_close here is correct, it should work, but it seems to cause
// crash on win http://trac.osgeo.org/qgis/ticket/2003
// disabled on win test it
#if !defined(WIN32)
Vect_close( &map );
#endif
return list;
}
else if ( level < 1 )
Expand Down

0 comments on commit 67d41d0

Please sign in to comment.