Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Partially reverted 5e1b5a4 because it breaks GRASS create new mapset
  • Loading branch information
blazek committed Apr 8, 2015
1 parent 21b5a82 commit ab0010f
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions src/plugins/grass/qgsgrassnewmapset.cpp
Expand Up @@ -1263,12 +1263,7 @@ void QgsGrassNewMapset::createMapset()

// TODO: add QgsGrass::setLocation or G_make_location with
// database path
if ( !QgsGrass::activeMode() ) // because it calls private QgsGrass::init()
{
QMessageBox::warning( this, tr( "Create mapset" ),
tr( "Cannot activate grass" ) );
return;
}
QgsGrass::activeMode(); // because it calls private QgsGrass::init()

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

0 comments on commit ab0010f

Please sign in to comment.