Skip to content
Permalink
Browse files
Fixed ticket #287 - updating GRASS region
git-svn-id: http://svn.osgeo.org/qgis/trunk/qgis@5941 c8812cc2-4d05-0410-92ff-de0c093fc19c
  • Loading branch information
wonder committed Oct 13, 2006
1 parent 0239405 commit 9465dc5f8a6f5e4f7f770ad5e0a1efb41daf98de
Showing with 3 additions and 7 deletions.
  1. +3 −7 src/plugins/grass/qgsgrassplugin.cpp
@@ -151,7 +151,6 @@ void QgsGrassPlugin::initGui()
// Create region rubber band
mRegionBand = new QgsRubberBand(mCanvas, 1);
mRegionBand->setZ(20);
mRegionBand->hide();

// Create the action for tool
mOpenMapsetAction = new QAction( tr("Open mapset"), this );
@@ -241,7 +240,7 @@ void QgsGrassPlugin::mapsetChanged ()
mOpenToolsAction->setEnabled(false);
mRegionAction->setEnabled(false);
mEditRegionAction->setEnabled(false);
mRegionBand->hide();
mRegionBand->reset();
mCloseMapsetAction->setEnabled(false);
mNewVectorAction->setEnabled(false);

@@ -261,9 +260,7 @@ void QgsGrassPlugin::mapsetChanged ()
QSettings settings("QuantumGIS", "qgis");
bool on = settings.readBoolEntry ("/GRASS/region/on", true );
mRegionAction->setOn(on);
if ( on ) {
mRegionBand->show();
}
switchRegion(on);

if ( mTools )
{
@@ -613,9 +610,8 @@ void QgsGrassPlugin::switchRegion(bool on)

if ( on ) {
displayRegion();
mRegionBand->show();
} else {
mRegionBand->hide();
mRegionBand->reset();
}
}

0 comments on commit 9465dc5

Please sign in to comment.