Skip to content
Permalink
Browse files

fixed saving of working mapset

git-svn-id: http://svn.osgeo.org/qgis/trunk@5051 c8812cc2-4d05-0410-92ff-de0c093fc19c
  • Loading branch information
rblazek
rblazek committed Mar 17, 2006
1 parent 77d3c81 commit f29a4cd55c6b7504747632fa8cae029884a20d5f
Showing with 12 additions and 1 deletion.
  1. +10 −0 src/plugins/grass/qgsgrassplugin.cpp
  2. +2 −1 src/plugins/grass/qgsgrassplugin.h
@@ -266,6 +266,14 @@ void QgsGrassPlugin::mapsetChanged ()
}
}

}

void QgsGrassPlugin::saveMapset()
{
#ifdef QGISDEBUG
std::cerr << "QgsGrassPlugin::addVector()" << std::endl;
#endif

// Save working mapset in project file
QgsProject::instance()->writeEntry("GRASS","/WorkingGisdbase",
QgsGrass::getDefaultGisdbase() );
@@ -688,6 +696,7 @@ void QgsGrassPlugin::openMapset()
return;
}

saveMapset();
mapsetChanged();
}

@@ -705,6 +714,7 @@ void QgsGrassPlugin::closeMapset()
return;
}

saveMapset();
mapsetChanged();
}

@@ -108,7 +108,8 @@ public slots:
void projectRead();
//! New project
void newProject();

//! Save mapset to project
void saveMapset();

private:
//! Name of the plugin

0 comments on commit f29a4cd

Please sign in to comment.
You can’t perform that action at this time.