mirror of
https://github.com/qgis/QGIS.git
synced 2025-03-01 00:46:20 -05:00
[GRASS] soft warning from provider if init failed
This commit is contained in:
parent
2acf7a86b9
commit
687ad5a750
@ -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;
|
||||
}
|
||||
@ -143,7 +144,6 @@ void QgsGrassPlugin::initGui()
|
||||
mTools = 0;
|
||||
mNewMapset = 0;
|
||||
|
||||
QSettings settings;
|
||||
mCanvas = qGisInterface->mapCanvas();
|
||||
QWidget* qgis = qGisInterface->mainWindow();
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user