File tree Expand file tree Collapse file tree 1 file changed +8
-6
lines changed Expand file tree Collapse file tree 1 file changed +8
-6
lines changed Original file line number Diff line number Diff line change @@ -357,12 +357,6 @@ bool QgsGrass::init( void )
357
357
return false ;
358
358
}
359
359
360
- if ( active )
361
- {
362
- QgsGrass::instance ()->loadMapsetSearchPath (); // must be after G_no_gisinit()
363
- QgsGrass::instance ()->setMapsetSearchPathWatcher ();
364
- }
365
-
366
360
// I think that mask should not be used in QGIS as it can only confuses people,
367
361
// anyway, I don't think anybody is using MASK
368
362
// TODO7: Rast_suppress_masking (see G_suppress_masking() macro above) needs MAPSET
@@ -474,6 +468,14 @@ bool QgsGrass::init( void )
474
468
}
475
469
476
470
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
+
477
479
return true ;
478
480
}
479
481
You can’t perform that action at this time.
0 commit comments