Skip to content

Commit

Permalink
[GRASS] fixed deadlock when started from GRASS shell
Browse files Browse the repository at this point in the history
  • Loading branch information
blazek committed Oct 8, 2015
1 parent 3520f03 commit af6f467
Showing 1 changed file with 8 additions and 6 deletions.
14 changes: 8 additions & 6 deletions src/providers/grass/qgsgrass.cpp
Expand Up @@ -357,12 +357,6 @@ bool QgsGrass::init( void )
return false;
}

if ( active )
{
QgsGrass::instance()->loadMapsetSearchPath(); // must be after G_no_gisinit()
QgsGrass::instance()->setMapsetSearchPathWatcher();
}

// I think that mask should not be used in QGIS as it can only confuses people,
// anyway, I don't think anybody is using MASK
// TODO7: Rast_suppress_masking (see G_suppress_masking() macro above) needs MAPSET
Expand Down Expand Up @@ -474,6 +468,14 @@ bool QgsGrass::init( void )
}

unlock();

// after unlock because it is using setMapset() which calls init()
if ( active )
{
QgsGrass::instance()->loadMapsetSearchPath(); // must be after G_no_gisinit()
QgsGrass::instance()->setMapsetSearchPathWatcher();
}

return true;
}

Expand Down

0 comments on commit af6f467

Please sign in to comment.