[GRASS-SVN] r58254 - grass/trunk/gui/wxpython/lmgr

svn_grass at osgeo.org svn_grass at osgeo.org
Tue Nov 19 05:30:02 PST 2013


Author: martinl
Date: 2013-11-19 05:30:01 -0800 (Tue, 19 Nov 2013)
New Revision: 58254

Modified:
   grass/trunk/gui/wxpython/lmgr/frame.py
Log:
wxGUI: close current workspace and create new one when creating new location

Modified: grass/trunk/gui/wxpython/lmgr/frame.py
===================================================================
--- grass/trunk/gui/wxpython/lmgr/frame.py	2013-11-18 23:35:52 UTC (rev 58253)
+++ grass/trunk/gui/wxpython/lmgr/frame.py	2013-11-19 13:30:01 UTC (rev 58254)
@@ -396,7 +396,10 @@
                               location = location,
                               mapset = 'PERMANENT') != 0:
                     return
-                
+
+                # close current workspace and create new one
+                self.OnWorkspaceClose()
+                self.OnWorkspaceNew()
                 GMessage(parent = self,
                          message = _("Current location is <%(loc)s>.\n"
                                      "Current mapset is <%(mapset)s>.") % \
@@ -867,7 +870,7 @@
                           mapset = mapset) != 0:
                 return # error reported
             
-            # close workspace
+            # close current workspace and create new one
             self.OnWorkspaceClose()
             self.OnWorkspaceNew()
             GMessage(parent = self,



More information about the grass-commit mailing list