Skip to content

Commit

Permalink
GRASS Direct disabled for 2.0
Browse files Browse the repository at this point in the history
  • Loading branch information
blazek committed May 8, 2013
1 parent e80d8c3 commit 9e05b41
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/plugins/grass/CMakeLists.txt
Expand Up @@ -11,6 +11,9 @@ ELSE (WIN32)
ADD_DEFINITIONS(-DHAVE_POSIX_OPENPT)
ENDIF (WIN32)

# GRASS Direct disabled in 2.0
#ADD_DEFINITIONS("-DGRASS_DIRECT")

########################################################
# Files

Expand Down
4 changes: 4 additions & 0 deletions src/plugins/grass/qgsgrassplugin.cpp
Expand Up @@ -221,7 +221,11 @@ void QgsGrassPlugin::mapsetChanged()
{
if ( !QgsGrass::activeMode() )
{
#ifdef GRASS_DIRECT
mOpenToolsAction->setEnabled( true );
#else
mOpenToolsAction->setEnabled( false );
#endif
mRegionAction->setEnabled( false );
mEditRegionAction->setEnabled( false );
mRegionBand->reset();
Expand Down

0 comments on commit 9e05b41

Please sign in to comment.