[GRASS] fixed region when qgis is started from GRASS shell

This commit is contained in:
Radim Blazek 2015-10-08 09:43:21 +02:00
parent d088e0be3a
commit 814e848363

View File

@ -282,13 +282,12 @@ void QgsGrassPlugin::initGui()
connect( qGisInterface->layerTreeView(), SIGNAL( currentLayerChanged( QgsMapLayer* ) ),
SLOT( onCurrentLayerChanged( QgsMapLayer* ) ) );
mapsetChanged();
// open tools when plugin is loaded so that main app restores tools dock widget state
mTools = new QgsGrassTools( qGisInterface, qGisInterface->mainWindow() );
qGisInterface->addDockWidget( Qt::RightDockWidgetArea, mTools );
onGisbaseChanged();
mapsetChanged();
}
void QgsGrassPlugin::onGisbaseChanged()