File tree 2 files changed +12
-1
lines changed
2 files changed +12
-1
lines changed Original file line number Diff line number Diff line change @@ -266,6 +266,14 @@ void QgsGrassPlugin::mapsetChanged ()
266
266
}
267
267
}
268
268
269
+ }
270
+
271
+ void QgsGrassPlugin::saveMapset ()
272
+ {
273
+ #ifdef QGISDEBUG
274
+ std::cerr << " QgsGrassPlugin::addVector()" << std::endl;
275
+ #endif
276
+
269
277
// Save working mapset in project file
270
278
QgsProject::instance ()->writeEntry (" GRASS" ," /WorkingGisdbase" ,
271
279
QgsGrass::getDefaultGisdbase () );
@@ -688,6 +696,7 @@ void QgsGrassPlugin::openMapset()
688
696
return ;
689
697
}
690
698
699
+ saveMapset ();
691
700
mapsetChanged ();
692
701
}
693
702
@@ -705,6 +714,7 @@ void QgsGrassPlugin::closeMapset()
705
714
return ;
706
715
}
707
716
717
+ saveMapset ();
708
718
mapsetChanged ();
709
719
}
710
720
Original file line number Diff line number Diff line change @@ -108,7 +108,8 @@ public slots:
108
108
void projectRead ();
109
109
// ! New project
110
110
void newProject ();
111
-
111
+ // ! Save mapset to project
112
+ void saveMapset ();
112
113
113
114
private:
114
115
// ! Name of the plugin
You can’t perform that action at this time.
0 commit comments