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@5051 c8812cc2-4d05-0410-92ff-de0c093fc19c
  • Loading branch information
rblazek committed Mar 17, 2006
1 parent 77d3c81 commit f29a4cd
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 // Save working mapset in project file
QgsProject::instance()->writeEntry("GRASS","/WorkingGisdbase", QgsProject::instance()->writeEntry("GRASS","/WorkingGisdbase",
QgsGrass::getDefaultGisdbase() ); QgsGrass::getDefaultGisdbase() );
Expand Down Expand Up @@ -688,6 +696,7 @@ void QgsGrassPlugin::openMapset()
return; return;
} }


saveMapset();
mapsetChanged(); mapsetChanged();
} }


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


saveMapset();
mapsetChanged(); mapsetChanged();
} }


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

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


private: private:
//! Name of the plugin //! Name of the plugin
Expand Down

0 comments on commit f29a4cd

Please sign in to comment.