Skip to content

Commit

Permalink
Fixed ticket #287 - updating GRASS region
Browse files Browse the repository at this point in the history
git-svn-id: http://svn.osgeo.org/qgis/trunk@5941 c8812cc2-4d05-0410-92ff-de0c093fc19c
  • Loading branch information
wonder committed Oct 13, 2006
1 parent f1faa61 commit 65b5764
Showing 1 changed file with 3 additions and 7 deletions.
10 changes: 3 additions & 7 deletions src/plugins/grass/qgsgrassplugin.cpp
Expand Up @@ -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 );
Expand Down Expand Up @@ -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);

Expand All @@ -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 )
{
Expand Down Expand Up @@ -613,9 +610,8 @@ void QgsGrassPlugin::switchRegion(bool on)

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

Expand Down

0 comments on commit 65b5764

Please sign in to comment.