Skip to content

Commit

Permalink
fixed saving of working mapset
Browse files Browse the repository at this point in the history
git-svn-id: http://svn.osgeo.org/qgis/trunk/qgis@5051 c8812cc2-4d05-0410-92ff-de0c093fc19c
  • Loading branch information
rblazek committed Mar 17, 2006
1 parent e53b61b commit cd4eb9b
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 1 deletion.
10 changes: 10 additions & 0 deletions src/plugins/grass/qgsgrassplugin.cpp
Expand Up @@ -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() );
Expand Down Expand Up @@ -688,6 +696,7 @@ void QgsGrassPlugin::openMapset()
return;
}

saveMapset();
mapsetChanged();
}

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

saveMapset();
mapsetChanged();
}

Expand Down
3 changes: 2 additions & 1 deletion src/plugins/grass/qgsgrassplugin.h
Expand Up @@ -108,7 +108,8 @@ public slots:
void projectRead();
//! New project
void newProject();

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

private:
//! Name of the plugin
Expand Down

0 comments on commit cd4eb9b

Please sign in to comment.