[GRASS-SVN] r48976 - grass/branches/develbranch_6/gui/wxpython
svn_grass at osgeo.org
svn_grass at osgeo.org
Thu Oct 27 17:59:51 EDT 2011
Author: martinl
Date: 2011-10-27 14:59:51 -0700 (Thu, 27 Oct 2011)
New Revision: 48976
Modified:
grass/branches/develbranch_6/gui/wxpython/gis_set.py
Log:
wxGUI: show message when mapset exists (OnCreateMapset)
Modified: grass/branches/develbranch_6/gui/wxpython/gis_set.py
===================================================================
--- grass/branches/develbranch_6/gui/wxpython/gis_set.py 2011-10-27 21:57:07 UTC (rev 48975)
+++ grass/branches/develbranch_6/gui/wxpython/gis_set.py 2011-10-27 21:59:51 UTC (rev 48976)
@@ -692,6 +692,11 @@
if dlg.ShowModal() == wx.ID_OK:
mapset = dlg.GetValue()
+ if mapset in self.listOfMapsets:
+ GMessage(parent = self,
+ message = _("Mapset <%s> already exists.") % mapset)
+ return
+
try:
os.mkdir(os.path.join(self.gisdbase, location, mapset))
# copy WIND file and its permissions from PERMANENT and set permissions to u+rw,go+r
More information about the grass-commit
mailing list