Skip to content

Commit 67d41d0

Browse files
author
rblazek
committed
disabled Vect_close if map cannot be opened on level2 on win to test ticket 2003
git-svn-id: http://svn.osgeo.org/qgis/trunk@13159 c8812cc2-4d05-0410-92ff-de0c093fc19c
1 parent be05a75 commit 67d41d0

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

src/plugins/grass/qgsgrassselect.cpp

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -413,7 +413,12 @@ QStringList QgsGrassSelect::vectorLayers( QString gisdbase,
413413
{
414414
QgsDebugMsg( "Cannot open vector on level 2" );
415415
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 ) );
416+
// Vect_close here is correct, it should work, but it seems to cause
417+
// crash on win http://trac.osgeo.org/qgis/ticket/2003
418+
// disabled on win test it
419+
#if !defined(WIN32)
416420
Vect_close( &map );
421+
#endif
417422
return list;
418423
}
419424
else if ( level < 1 )

0 commit comments

Comments
 (0)