Skip to content

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed
 

‎src/providers/grass/qgsgrass.cpp

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -293,6 +293,12 @@ QString QgsGrass::openMapset ( QString gisdbase, QString location, QString mapse
293293
// Check if the mapset is in use
294294
QString gisBase = getenv("GISBASE");
295295
if ( gisBase.isNull() ) return "GISBASE is not set.";
296+
297+
QFileInfo fi( mapsetPath+ "/WIND" );
298+
if ( !fi.exists() )
299+
{
300+
return mapsetPath + " is not a GRASS mapset.";
301+
}
296302

297303
QString lock = mapsetPath + "/.gislock";
298304
QFile lockFile ( lock );

0 commit comments

Comments
 (0)
Please sign in to comment.