Skip to content

Commit cd4eb9b

Browse files
author
rblazek
committed
fixed saving of working mapset
git-svn-id: http://svn.osgeo.org/qgis/trunk/qgis@5051 c8812cc2-4d05-0410-92ff-de0c093fc19c
1 parent e53b61b commit cd4eb9b

File tree

2 files changed

+12
-1
lines changed

2 files changed

+12
-1
lines changed

src/plugins/grass/qgsgrassplugin.cpp

+10
Original file line numberDiff line numberDiff line change
@@ -266,6 +266,14 @@ void QgsGrassPlugin::mapsetChanged ()
266266
}
267267
}
268268

269+
}
270+
271+
void QgsGrassPlugin::saveMapset()
272+
{
273+
#ifdef QGISDEBUG
274+
std::cerr << "QgsGrassPlugin::addVector()" << std::endl;
275+
#endif
276+
269277
// Save working mapset in project file
270278
QgsProject::instance()->writeEntry("GRASS","/WorkingGisdbase",
271279
QgsGrass::getDefaultGisdbase() );
@@ -688,6 +696,7 @@ void QgsGrassPlugin::openMapset()
688696
return;
689697
}
690698

699+
saveMapset();
691700
mapsetChanged();
692701
}
693702

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

717+
saveMapset();
708718
mapsetChanged();
709719
}
710720

src/plugins/grass/qgsgrassplugin.h

+2-1
Original file line numberDiff line numberDiff line change
@@ -108,7 +108,8 @@ public slots:
108108
void projectRead();
109109
//! New project
110110
void newProject();
111-
111+
//! Save mapset to project
112+
void saveMapset();
112113

113114
private:
114115
//! Name of the plugin

0 commit comments

Comments
 (0)