File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -357,12 +357,6 @@ bool QgsGrass::init( void )
357357 return false ;
358358 }
359359
360- if ( active )
361- {
362- QgsGrass::instance ()->loadMapsetSearchPath (); // must be after G_no_gisinit()
363- QgsGrass::instance ()->setMapsetSearchPathWatcher ();
364- }
365-
366360 // I think that mask should not be used in QGIS as it can only confuses people,
367361 // anyway, I don't think anybody is using MASK
368362 // TODO7: Rast_suppress_masking (see G_suppress_masking() macro above) needs MAPSET
@@ -474,6 +468,14 @@ bool QgsGrass::init( void )
474468 }
475469
476470 unlock ();
471+
472+ // after unlock because it is using setMapset() which calls init()
473+ if ( active )
474+ {
475+ QgsGrass::instance ()->loadMapsetSearchPath (); // must be after G_no_gisinit()
476+ QgsGrass::instance ()->setMapsetSearchPathWatcher ();
477+ }
478+
477479 return true ;
478480}
479481
You can’t perform that action at this time.
0 commit comments