Skip to content

Commit

Permalink
[GRASS] soft warning from provider if init failed
Browse files Browse the repository at this point in the history
  • Loading branch information
blazek committed Sep 14, 2015
1 parent 2acf7a8 commit 687ad5a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/plugins/grass/qgsgrassplugin.cpp
Expand Up @@ -135,6 +135,7 @@ void QgsGrassPlugin::initGui()
{
if ( !QgsGrass::init() )
{
qGisInterface->messageBar()->pushMessage( tr( "GRASS error" ), QgsGrass::errorMessage(), QgsMessageBar::WARNING );
// TODO: add a widget with warning
return;
}
Expand All @@ -143,7 +144,6 @@ void QgsGrassPlugin::initGui()
mTools = 0;
mNewMapset = 0;

QSettings settings;
mCanvas = qGisInterface->mapCanvas();
QWidget* qgis = qGisInterface->mainWindow();

Expand Down

0 comments on commit 687ad5a

Please sign in to comment.