Skip to content

Commit ab0010f

Browse files
committedApr 8, 2015
Partially reverted 5e1b5a4 because it breaks GRASS create new mapset
1 parent 21b5a82 commit ab0010f

File tree

1 file changed

+1
-6
lines changed

1 file changed

+1
-6
lines changed
 

‎src/plugins/grass/qgsgrassnewmapset.cpp

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1263,12 +1263,7 @@ void QgsGrassNewMapset::createMapset()
12631263

12641264
// TODO: add QgsGrass::setLocation or G_make_location with
12651265
// database path
1266-
if ( !QgsGrass::activeMode() ) // because it calls private QgsGrass::init()
1267-
{
1268-
QMessageBox::warning( this, tr( "Create mapset" ),
1269-
tr( "Cannot activate grass" ) );
1270-
return;
1271-
}
1266+
QgsGrass::activeMode(); // because it calls private QgsGrass::init()
12721267

12731268
#if defined(WIN32)
12741269
G__setenv(( char * ) "GISDBASE", QgsGrass::shortPath( mDatabaseLineEdit->text() ).toUtf8().data() );

0 commit comments

Comments
 (0)
Please sign in to comment.