Skip to content
Permalink
Browse files
Partially reverted 5e1b5a4 because it breaks GRASS create new mapset
  • Loading branch information
blazek committed Apr 8, 2015
1 parent 25c5e4d commit d3a947abaaac100fd75a99e2921f1ed5a3162fa5
Showing with 1 addition and 6 deletions.
  1. +1 −6 src/plugins/grass/qgsgrassnewmapset.cpp
@@ -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() );

0 comments on commit d3a947a

Please sign in to comment.